Skip to Content.
Sympa Menu

freetds - RE: syntax for connecting to database with FreeTDS?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "aellist" <aellist AT chg.mc.duke.edu>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: RE: syntax for connecting to database with FreeTDS?
  • Date: Thu, 14 Dec 2000 16:56:26 -0500


> > Yes - it is set as follows:
> >
> > SYBASE
> > query tcp ether <IP> 5001
> > master tcp ether <IP> 5001
> >
> > with IP replaced, of course.
>
> ...
>
> > > > <?
> > > > if (sybase_connect("$SERVER_IP_PORT","$USER","$PASS")) echo
> > > > "CONNECTED!!!";
> > > > ?>
>
> You need to use the server name as defined in the interfaces file in the
> connect function. In your case, the server name is just "SYBASE".
>
> Tom

Thank you, thank you, thank you! We had no idea that this was the syntax.
Implementing your change did the trick. I have now successfully accessed a
Sybase database through PHP using FreeTDS on a Solaris box. :-)

Thanks again everyone for your help,
Andrew Elliston





Archive powered by MHonArc 2.6.24.

Top of Page