Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Connect To MS SQL Server

Status
Not open for further replies.

likelylad

IS-IT--Management
Jul 4, 2002
388
GB
Hi

I am trying to connect to a MS SQL server and it is driving me mad.

I am using the following code
Code:
$db = mssql_connect('servername','username','password') or die("Unable to connect to server");

It keeps coming back with the Unable to connect to server error.

I have logged into the SQL server with the username and password.

Someone in my organization is connecting to the server using ADO and ASP with the same username and password without any problems.

Has anyone got any suggestions for things to try???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top