Results 1 to 2 of 2

Thread: Session onend problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    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

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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
  •  



Click Here to Expand Forum to Full Width