in reply to Re: Re: Connecting to a MS SQL 2k Server
in thread Connecting to a MS SQL 2k Server
use DBI; my $data_source = "dbi:Sybase:database=SynergyOne;server=MSSQL"; my $username = 'sa'; my $auth = ''; + + my $dbh = DBI->connect($data_source, $username, $auth) or die "no connection: $DBI::errstr";
[tbone@MDB tbone]$ ~/bin/db-connect.pl DBI connect('database=SynergyOne;server=MSSQL','sa',...) failed: at / +home/tbone/bi\ n/db-connect.pl line 9 no connection: OpenClient message: LAYER = (1) ORIGIN = (2) SEVERITY = + (6) NUMBER = (151) Message String: ct_connect(): user api layer: internal Client Library +error: A connection to the server must exist on the connection struct +ure before this routine can be called. [tbone@MDB tbone]$
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Connecting to a MS SQL 2k Server
by dragonchild (Archbishop) on Jul 25, 2003 at 16:37 UTC | |
|
Re: Re: Re: Re: Connecting to a MS SQL 2k Server
by mpeppler (Vicar) on Jul 25, 2003 at 18:46 UTC |