Cannot access MSSQL db

Brian Bruns camber at ais.org
Sun Apr 7 22:20:44 EDT 2002



Ack, I misspoke...read the error message wrong.  Follow James' advice, not 
mine.  Also, grab sqsh (www.sqsh.org) and get it working before other 
things.

Brian

On Sun, 7 Apr 2002, David Nordenberg wrote:

> Hello. I have compiled freetds-current from today and compiled it into
> PHP. Please look here to see how I compiled freetds and PHP:
> ftp://kyit.dhs.org/linux/slackware/mod_php-4.1.2/source/SlackBuild
> 
> I installed the package and run apache stop and start. I created a entry
> in /etc/freetds.conf which looks like this:
> [dna]
>         host = dna.utb.net
>         port = 1433
>         tds version = 4.2
> 
> (tried tds version = 7.0 too)
> And tried to connect with a PHP script and got this:
> Warning: Sybase: A link to the server could not be established in
> /home/dna/public_html/testing.php on line 7
> 
> Warning: -1 is not a Sybase link index in
> /home/dna/public_html/testing.php on line 10
> 
> Warning: 0 is not a Sybase result index in
> /home/dna/public_html/testing.php on line 11
> 
> My script I try to run it availible here:
> http://kyit.dhs.org/~dna/testing.txt
> 
> I also got:
> Connection refused
> DB-Library: Login incorrect.
> in apache's error_log
> 
> I tried multiple login accounts on the sql server and the password should
> be okey. I get the same error whatever server I set in freetds.conf (even
> when I try non existing ones).
> 
> What can be my problem?
> 
> Regards David Nordenberg
> 
> ---
> You are currently subscribed to freetds as: [camber at ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
> 





More information about the FreeTDS mailing list