|
-
Jun 23rd, 2001, 10:08 AM
#1
Thread Starter
Hyperactive Member
Session onend problem
I get a runtime error when I open a adodb connection inside the session_onend in the global.asa. After that I need to restart IIS in order to get db communication working again... I don't think I do anything fancy:
Dim strSQL, objRS, objConn
strSQL = "SELECT CursusID, CursistID, Begin WHERE CursusID =" & Session("CourseID") & " AND CursistID = " & Session("CursistID") & ";"
Set objConn = server.CreateObject("ADODB.Connection")
Set objRS = server.CreateObject("ADODB.recordset")
objConn.Open ("PROVIDER=MSDASQL; DRIVER={Microsoft Access Driver (*.mdb)}; UID=admin;PWD=opensesame; DBQ=D:\DataStores\cont.mdb")
I get the internal error when I call objConn.Open
-
Jun 23rd, 2001, 02:44 PM
#2
Frenzied Member
You can't use both a provider AND a driver:
Code:
objConn.Open ("PROVIDER=MSDASQL; DRIVER={Microsoft Access Driver (*.mdb)}; UID=admin;PWD=opensesame; DBQ=D:\DataStores\cont.mdb")
Providers use OLEDB and Drivers use ODBC. Use the OLEDB provider for Jet...
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|