ASP / SQLServer connection
From: Peter Morris (nospam.ple_at_se)
Date: 10/09/04
- Next message: Bob Barrows [MVP]: "Re: DHTML object model parsing under ASP"
- Previous message: Paxtonend: "Re: ASP Question"
- Next in thread: Dan Guzman: "Re: ASP / SQLServer connection"
- Reply: Dan Guzman: "Re: ASP / SQLServer connection"
- Reply: Joker: "Re: ASP / SQLServer connection"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 09 Oct 2004 14:14:09 GMT
Hi, I'm having trouble connecting to SQLServer in my ASP program.
here's the code
<%
dim objConnection, ObjRecorSet, strConnection, strOut, objCmd, objParameters
Set objConnection = Server.CreateObject ("ADODB.Connection")
strConnection = "DSN=SQL_Tracker;Database=Tracker;UID=sa;PWD=;"
objConnection.Open strConnection
...
%>
I'm getting this error on the line that opens the connection.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'HOME\IUSR_HOME'.
/Tracker/list_team.asp, line 11
Notes:
I've set up the DSN called 'SQL_Tracker' in my ODBC settings.
When I use the Test Connection button it's successful.
The SQL Server is running on my own computer, and so I have
full DBA rights on it
any ideas what's wrong?
- Next message: Bob Barrows [MVP]: "Re: DHTML object model parsing under ASP"
- Previous message: Paxtonend: "Re: ASP Question"
- Next in thread: Dan Guzman: "Re: ASP / SQLServer connection"
- Reply: Dan Guzman: "Re: ASP / SQLServer connection"
- Reply: Joker: "Re: ASP / SQLServer connection"
- Messages sorted by: [ date ] [ thread ]