943,704 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3267
  • PHP RSS
Oct 6th, 2007
0

php mssql connectivity error

Expand Post »
Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. (severity 14) in \usr\local\htdocs\connect.php on line 5

We are using the following code for connectivity


mssql_connect('servername,port', 'username', 'password');
mssql_select_db("dbname");
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yogi_xevoke is offline Offline
1 posts
since Oct 2007
Oct 7th, 2007
0

Re: php mssql connectivity error

You ARE changing those values to the proper ones, right? For example, to use the username "daniweb" and password "isthecurrentsite" and connect to the server www.example.com, your connection string would be:
mssql_connect('localhost', 'daniweb', 'isthecurrentsite');
Reputation Points: 23
Solved Threads: 23
Posting Pro in Training
Puckdropper is offline Offline
494 posts
since Jul 2004
Aug 12th, 2010
0

MSSql server & PHP Connectivity Error

I was facing the same type of error like [Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user 'CORP\sanjsahu'. (severity 14) in D:\Program Files\xampp\htdocs\ on line 23
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: DTPXP-SANJSAHU\SQLEXPRESS in D:\Program Files\xampp\htdocs on line 23
Couldn’t connect to SQL Server on DTPXP-SANJSAHU\SQLEXPRESS]
while connecting through mssql.But some time it's working with the same user name and password and on the other time it throughs an exception like the abobe statement as described. Please let me know any permanent solution for that.
Last edited by sanjayks; Aug 12th, 2010 at 8:35 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sanjayks is offline Offline
1 posts
since Aug 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Cookie is created but cannot be read
Next Thread in PHP Forum Timeline: php switch case hyperlink "title"





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC