faqts : Computers : Programming : Languages : PHP : Database Backed Sites : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 5 people (80%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

How do I perform MS-SQL or ODBC operations on an NT DB server if my PHP is running on UNIX.

Jan 28th, 2000 13:06
Matt Gregory, Rio Bautista,


Make sure that your domain is set up correctly and then connect to your 
MSSQL server databse using the domain name of the server:
mssql_connect("servername", "user", "pass");
ODBC is primarally for Windows PHP.  Most users elect not to use ODBC 
on Linux.  There are a few ODBC compliant drivers out for Linux but you 
will have to search for the one you need.  You might also have to 
recompile your kernel to enable them.