1

I have used default MS SQL driver to connect to a SQL server in a php application. I'm using XAMPP 1.6.8. my php version is 5.2.6.

Application was connected successfully to the SQL server and the application was running successfully for a long time. Now suddenly the application is showing an error on mssql_connect() function with same MS SQL access information. the error is "Unable to connect to server: xxx.xxx.xxx.xxx"

I also checked the SQL server access info with a SQL client. SQL client can connect successfully, therefore i think the access info is correct.

Can any one help me resolved this issue?

Thx

8
  • 2
    (1) Please proofread your post before clicking "submit". There are rules in English language about sentences. (2) Post your code. Commented Jul 8, 2013 at 11:17
  • What's the specific error message you're getting? Commented Jul 8, 2013 at 11:27
  • @Jon error is "Unable to connect to server: xxx.xxx.xxx.xxx." Commented Jul 8, 2013 at 11:29
  • 2
    I just found my solution here. jimmyli.net/2009/03/php-unable-to-connect-to-mssql tha problem was that the file ntwdblib.dll packaged with PHP5 was an old version. then i just replace with updated one from here jimmyli.net/wp/wp-content/uploads/2009/03/ntwdblib.zip Commented Jul 8, 2013 at 11:56
  • 1
    Then "suddenly" means "after upgrading PHP", doesn't it? Commented Jul 8, 2013 at 12:07

1 Answer 1

1

I just found my solution here. http://jimmyli.net/2009/03/php-unable-to-connect-to-mssql/ .problem was that the file ntwdblib.dll packaged with PHP5 was an old version. then i just replace with updated one from here http://jimmyli.net/wp/wp-content/uploads/2009/03/ntwdblib.zip

Thx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.