Microsoft OLE DB Provider for ODBC Drivers (0x80004005)

[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注
      册表关键字 ‘Temporary (volatile) Jet DSN for process 0xd30
      Thread 0x29c DBC 0x1762e54 Jet’。/admin_login/data_base
      /conn.asp, 第 8 行

      下面是conn.asp的全部代码:
      <%
      Dim conn,connstr,DBPath,filePath,dbName
      dbName = “DB.mdb”
      filePath = Request.ServerVariables(“APPL_PHYSICAL_PATH”)
      DBPath =filePath&”admin_login\data_base\”&dbName
      Set conn = Server.CreateObject(“ADODB.Connection”)
      connstr=”driver={Microsoft Access Driver (*.mdb)};dbq=” & DBPath
      conn.Open connstr
      %>

      以为第八行有什么问题的,看来看去就那几个字,没啥问题啊。
      百度了N久才查到准确答案,记录下来以备日后使用

      找到这个文件夹 c:\Windows\Temp 然后 右键—安全—添加Everyone用户并设置“完全控制”权限

      如果没看到“安全”选项:
     双击“我的电脑”—工具—文件夹选项-查看-把:使用简单文件共享(推荐)前面的勾去掉

Leave a comment

您的电子邮箱地址不会被公开。 必填项已用 * 标注