all groups > sql server connect > october 2007 >
You're in the

sql server connect

group:

SQL Server Connection Error


SQL Server Connection Error Phil Dodgson
10/8/2007 8:52:02 AM
sql server connect:
Hi,

I have just installed SQL Server 2005 and I'm having trouble setting up
logins, the scenario that I have is I have a number of .php pages on an IIS
Version 6 server and when you click a button, it creates a database
connection and inserts data into a table. I used Web as a Username and
Password as Password just for this example. I have then gone to the
Security Tab in SQL Server 2005 and set up a User called Web with all Privs.
and data base owner of NAI which is the database that I am trying to insert
into, this then creates a login in this database.

When I run the web page I just keep getting the error

Login failed for user 'Web'. The user is not associated with a trusted SQL
Server connection. (severity 14)

If I try and connect direct to the database using the same connection
details I get a "No process is on the other end of the pipe." I have checked
and I have TCP/IP and Names pipes enabled which is what most web sites seem
to tell me.

Can someone point me in the direction of what I am doing wrong as I had this
set up and working on SQL Server 2000 with no problems.

Re: SQL Server Connection Error Andrew J. Kelly
10/8/2007 1:44:31 PM
Phil,

Have a look at these first:
http://www.kbalertz.com/Feedback_914277.aspx
http://betav.com/blog/billva/2006/06/getting_and_staying_connected.html

But when you created the Login called Web it must have been a SQL Login but
it sounds like you are trying to connect via Windows Auth. What does your
connection string look like?

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


[quoted text, click to view]
AddThis Social Bookmark Button