I have the following setup installet
- LINUX with Apache Web Server and php 4.0
- MS SQL Server 7.0 on Windows NT 4.0
Now i have an application coded in php residing on the linux box . I want to connect to the MS SQL Server 7.0 database residing on the NT server.
I tried estabilishing the connection by:
mssql_connect ("[dbname]","user id","pwd")
when executing the above, the following error occured:
"[dbname]" connection failed.
These are the measures i had taken care as per the instructions available on php.net and www.phpbuilder.com:
- downloaded freeTDS software
- changed the php.ini file
- changed the interfaces file under the freetds directory.
Inspite of all the above, i could not connect to the server.
Could someone tell me the right procedure to connect to the database and if possible send me the syntax for the same.