TConnection.Open question



Hi,

I've imported the ADO 2.6 type library into Delphi 6 and successfully gotten
it to work. (This is for use with a legacy application.)

However, the MS documentation says that all of the parameters on the
connection open method are optional. Indeed, I'm used to setting the
connection properties instead of using the open; specifically with the user
ID and password in the connection that I retrieve from an ini file.

However, this is the only definition of the open in the imported type
library:

Procedure TConnection.Open(Const ConnectionString: WideString; Const
UserID: WideString;
Const Password: WideString; Options: Integer);

That is, there is no implementation without the parameters.

So, is there something I can pass, maybe a null string or NIL, that tells
ADO the parameter is not there or do I have to pass everything in the open,
thus making the various properties irrelevant.

Gary



.



Relevant Pages

  • Re: C++ support for ADO
    ... TESTHR(pConn.CreateInstance(__uuidof(Connection))); ... In answer to your question I'm interested in ADO not the ADO.net. ... data classes for working with ADO/OLE DB. ... You can also use the OLE SDK. ...
    (microsoft.public.data.ado)
  • Re: ODBC/OLE DB Connection Pool
    ... > connection be kept open for the application as this will serialize all ... threads ONCE they are returned to the pool. ... > Tips for ADO Users ... > The ADO Connection object implicitly uses IDataInitialize. ...
    (microsoft.public.inetserver.asp.db)
  • Re: ODBC/OLE DB Connection Pool
    ... > connection be kept open for the application as this will serialize all ... threads ONCE they are returned to the pool. ... > Tips for ADO Users ... > The ADO Connection object implicitly uses IDataInitialize. ...
    (microsoft.public.data.oledb)
  • Re: How to make the app run?????
    ... throwing an error if the connection never was opened, ... How can i tell if i'm using ADO as in VB or .Net ADO ?? ... First of all, it was not shown to my customer, I took it to a very nice ... How do you get in "installed" on client computer? ...
    (microsoft.public.dotnet.general)
  • Re: ODBC/OLE DB Connection Pool
    ... > connection be kept open for the application as this will serialize all ... threads ONCE they are returned to the pool. ... > Tips for ADO Users ... > The ADO Connection object implicitly uses IDataInitialize. ...
    (microsoft.public.data.ado)