SunnyByfleet
Technical User
Hi,
I am having a wonderful time trying to reconstruct our company website on a test server.
The test server runs Windows 2003, IIS 6 and SQL Server 2000.
I have FTPed all the ASP files etc from the live web server.
I have restored a backup of the live server database into the test SQL server.
I have created an ODBC link, which passes the little test when you click the button etc
However, when I query the database in ASP using code like:
I get the following error:
If I instead specify the username and password, as in:
It works fine.
The only problem with that is the live website doesn't specify the username and password, so presumably it has its ODBC set up differently.
Anybody know what I need to configure to get this working?
I am having a wonderful time trying to reconstruct our company website on a test server.
The test server runs Windows 2003, IIS 6 and SQL Server 2000.
I have FTPed all the ASP files etc from the live web server.
I have restored a backup of the live server database into the test SQL server.
I have created an ODBC link, which passes the little test when you click the button etc
However, when I query the database in ASP using code like:
Code:
set conn = server.CreateObject("yada")
conn.open "connection name"
I get the following error:
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
If I instead specify the username and password, as in:
Code:
conn open, "connection name", "username", "password"
It works fine.
The only problem with that is the live website doesn't specify the username and password, so presumably it has its ODBC set up differently.
Anybody know what I need to configure to get this working?