|
fashiru -> RE: Microsoft OLE DB Provider for ODBC Drivers error '80004005' (3/11/2004 11:21:08)
|
It's working perfectly on my own IIS server will my codes. The one i upload to my web host server is the one not working. Below are codes: This is my database include file, it saved as db.asp and it's included on the pages that requires database connection. <% level="" SCRIPT_NAME = LCase(Request.ServerVariables("SCRIPT_NAME")) if Instr(SCRIPT_NAME, "Check")>0 then level="" else level="check/" end if mpath= level & "db.mdb" dsn = "DBQ=" & Server.Mappath(mpath) & ";Driver={Microsoft Access Driver (*.mdb)}; PWD=password" %> And is my Sql <%Set conn=Server.CreateObject("ADODB.Connection") conn.Open dsn SQL="SELECT * FROM Trans WHERE id = '" & request("id") & "'" Set RS = Server.CreateObject("ADODB.Recordset") rs.open sql, conn
|
|
|
|