Skip to Content.
Sympa Menu

freetds - Re: Syntax question...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Syntax question...
  • Date: Tue, 2 Jan 2001 09:05:02 -0800 (PST)


mjn writes:
> I am having some problems and I am not quite sure if i have a valid
> connect string...
>
> #!/usr/bin/perl -w
> use DBI;
>
> $user="user";
> $passwd="pass";
>
> my $dbh = DBI->connect('DBI:Sybase:pubs:server=SQLDATA', $user, $passwd,
> {RaiseError => 1,AutoCommit => 0}) || die "Couldn't

Please read the DBD::Sybase man page...

THe correct syntax should be
DBI->connect('dbi:Sybase:server=SQLDATA;database=pubs', $user, $passwd,
{ RaiseError=> 1, AutoCommit => 0} );


Michael
--
Michael Peppler - Data Migrations Inc. - mpeppler AT peppler.org
http://www.mbay.net/~mpeppler - mpeppler AT mbay.net - AIM MPpplr
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list AT isug.com



  • Syntax question..., mjn, 01/02/2001
    • <Possible follow-up(s)>
    • Re: Syntax question..., Michael Peppler, 01/02/2001

Archive powered by MHonArc 2.6.24.

Top of Page