knowram Posted April 27, 2008 Share Posted April 27, 2008 I have an apple that I have set up to run php. for some reason when I try to connect to a mssql server I get this error Warning: mssql_connect(): Unable to connect to server: The thing, it doesn't really seam like it is trying to connect. I know the user name and password works because it connects from a different server just fine. Any ideas? Thanks for the help Link to comment https://forums.phpfreaks.com/topic/103158-connecting-to-mssql-server/ Share on other sites More sharing options...
marcus Posted April 27, 2008 Share Posted April 27, 2008 What are you using for the mssql host? Link to comment https://forums.phpfreaks.com/topic/103158-connecting-to-mssql-server/#findComment-528412 Share on other sites More sharing options...
hitman6003 Posted April 27, 2008 Share Posted April 27, 2008 Make sure your php server can reach the SQL server...ping it to be sure. Assuming that you used FreeTDS to create the mssql extension, use the tsql command to test the connection from the command line. Link to comment https://forums.phpfreaks.com/topic/103158-connecting-to-mssql-server/#findComment-528440 Share on other sites More sharing options...
knowram Posted April 27, 2008 Author Share Posted April 27, 2008 the sql is running on a windows server and i can ping it. I have not heard of FreeTDS is that a mac or windows thing? Link to comment https://forums.phpfreaks.com/topic/103158-connecting-to-mssql-server/#findComment-528470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.