TConnection.Open question
- From: "Gary Wardell" <nospam@xxxxxxxxxx>
- Date: Sun, 22 Apr 2007 23:30:22 -0400
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
.
- Follow-Ups:
- Re: TConnection.Open question
- From: Brian Bushay TeamB
- Re: TConnection.Open question
- Prev by Date: Re: TADOConnection.Close does not work
- Next by Date: Re: TADOConnection.Close does not work
- Previous by thread: TADOConnection.Close does not work
- Next by thread: Re: TConnection.Open question
- Index(es):
Relevant Pages
|