
June 13th, 2003, 02:06 PM
|
|
Junior Member
|
|
Join Date: May 2003
Location: Guelph
Posts: 16
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
MS SQL Database Connection
I'm trying to create a connection to an MS SQL database from ASP. I'm trying to make this connection without using DSN. This is what I have right now:
strconn="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=;Data Source=;"
set conntemp=server.createobject("adodb.connection")
conntemp.open strconn
I am trying to use Windows integrated security to log onto the server, as opposed to providing a username 'n password. However, the error I keep getting is:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user '\'.
It continues to fail on the line where the connection is opened (conntemp.open strconn). Microsoft's knowledgebase says that error message "indicates problem with the SQL Server configuration for Windows NT authentication".
Any ideas on why that would be? BTW, I am using SQL Server Enterprise Manager to access my db.
|