% Option Explicit Dim DBconn, myDSN, strHledat, strNajdi, SQLStr, RS Session.timeout = 1 If IsObject(Session("CvicAplInf_conn")) Then Set DBConn = Session("CvicAplInf_conn") Else Set DBConn = Server.CreateObject("ADODB.Connection") ' Open database without DSN myDSN="DRIVER={Microsoft Access Driver (*.mdb)}; " myDSN=myDSN & "DBQ=" & server.mappath("Slovnik.mdb") DBConn.open myDSN ' Open database with DSN 'DBConn.open "CvicAplInf","Admin","" Set Session("CvicAplInf_conn") = DBConn End If %>
Slovník
|