Hello all,
My ASP pages was working ok with sql 2000 database server until we replaced the server w/ a new one and re-download SQL 2000 to the machine.
New database and tables can be easily created by using WINDOW AUTHENTICATION, but NO userID and password are required to view tables, which creates a conflict with a database connection file:
<%
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Driver={SQL Server};" &_
"Server=*******;" &_
"Database=********;" &_
"Network=DBMSSOCN;" &_
"Uid=**;" &_
"Pwd=*****;"
%>
hence, I got a ERROR:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '**'.
/includes/dbconn.asp, line 3
I tried to create another database by using SQL SERVER AUTHENTICATION; however, "log in failed for user '**'" and it keeps failing with any other choice I have.
Could someone tell me where have I gone wrong??? Thanks!!!
My ASP pages was working ok with sql 2000 database server until we replaced the server w/ a new one and re-download SQL 2000 to the machine.
New database and tables can be easily created by using WINDOW AUTHENTICATION, but NO userID and password are required to view tables, which creates a conflict with a database connection file:
<%
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Driver={SQL Server};" &_
"Server=*******;" &_
"Database=********;" &_
"Network=DBMSSOCN;" &_
"Uid=**;" &_
"Pwd=*****;"
%>
hence, I got a ERROR:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '**'.
/includes/dbconn.asp, line 3
I tried to create another database by using SQL SERVER AUTHENTICATION; however, "log in failed for user '**'" and it keeps failing with any other choice I have.
Could someone tell me where have I gone wrong??? Thanks!!!