in reply to Re: Re: Connecting to MS SQL using ADODB and ActivePerl
in thread Connecting to MS SQL using ADODB and ActivePerl
my $ConnStr = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Se +curity Info=False;Data Source=hostname;Initial Catalog=Database;"; my $AdoConn = new Win32::OLE("ADODB.Connection"); $AdoConn->Open($ConnStr);
If you need to specify a user, here is the syntax:
my $ConnStr = "Provider=SQLOLEDB.1;User Id=user; Password=password; Da +ta Source=hostname; Initial Catalog=Database;";
--
The ability to destroy planets is insignificant next to the power of the Deacon Effect.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Connecting to MS SQL using ADODB and ActivePerl
by qadwjoh (Scribe) on Feb 07, 2003 at 09:35 UTC | |
|
Re: Re^3: Connecting to MS SQL using ADODB and ActivePerl
by qadwjoh (Scribe) on Feb 11, 2003 at 08:59 UTC |