Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > BOOK: Professional SQL Server 2000 Programming
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional SQL Server 2000 Programming
This is the forum to discuss the Wrox book Professional SQL Server 2000 Programming by Robert Vieira; ISBN: 9780764543791
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2000 Programming section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 8th, 2007, 07:49 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login failed for user '(null)'

I need to connect remotely to MS SQL Server 2000 using

php.I am using the following codes:

$dbhost = "IP address of server";
$dbuser = "username";
$dbpass = "password";
mssql_connect($dbhost, $dbuser, $dbpass) or die("Unable to

connect to $db");

But I keep getting the following error:
PHP Warning: mssql_connect() [function.mssql-connect]:

message: Login failed for user '(null)'. Reason: Not

associated with a trusted SQL Server connection. (severity

14).

I have already set mixed mode authentication on the

server, but it did not help.

Please help

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login failed for user <null> bmcelhany BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 December 29th, 2005 02:28 AM
Error 18452: Login Failed for user '(null)'. Reas Nigeeee VB Databases Basics 2 February 10th, 2005 11:19 AM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM
Login failed for user '(null)' schockp ADO.NET 5 April 30th, 2004 11:45 PM



All times are GMT -4. The time now is 08:15 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.