Good question. Think it was one of my previous attempts to get the stupid thing to work. Forgot to take it out. Thanks, however, after taking strConn out. I now have:
Set xConn = Server.CreateObject("ADODB
xConn.ConnectionString = "DSN=CMP2 Test"
xConn.Open
I still get errors:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
error line 81
I also tried without putting "DSN=", just CMP2 Test...so I now had
Set xConn = Server.CreateObject("ADODB
xConn.ConnectionString = "CMP2 Test"
xConn.Open <--- line 81
Still get the same error.
Also I tried the following:
set xConn = Server.CreateObject("ADODB
DSNLog = "PROVIDER=MSDASQL;DRIVER={
DSNLog = DSNLog & "Server=STR02;"
DSNLog = DSNLog & "Database=CMP2;"
DSNLog = DSNLog & "Trusted_Connection=yes;"
xConn.Open DSNLog ' Open Recordset and get the field info <--line 85
Get a different error now.
Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'.
error line 85
Database is called CMP2, system DSN is called CMP2 Test.
Hope this info. helps...Any suggestions?
Main Topics
Browse All Topics





by: RaisorPosted on 2003-12-01 at 14:44:22ID: 9853866
Hi,
Where is the "strConn" variable declared?
Best regards, Raisor