Access connection error

Results 1 to 2 of 2

Thread: Access connection error

  1. #1
    Join Date
    Dec 1969

    Default Access connection error

    My connect string<BR>&#060;!--#include file=""--&#062;<BR>&#060;%<BR>Dim objConn<BR>Set objConn = Server.CreateObject("ADODB.Connection")<BR>DBPath = Server.MapPath("/db/test.mdb")<BR>response.write DBPath<BR>objConn.ConnectionString = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & DBPath<BR><BR>objConn.CursorLocation = adUseClient<BR>objConn.Open<BR>%&#062;<BR>and output with error.<BR>Microsoft OLE DB Provider for ODBC Drivers error &#039;80004005&#039; <BR><BR>[Microsoft][ODBC Microsoft Access 97 Driver] Can&#039;t open database &#039;(unknown)&#039;. It may not be a database that your application recognizes, or the file may be corrupt. <BR><BR>what does this means... and how can i solve it <BR>ThankQ<BR>

  2. #2
    Join Date
    Dec 1969

    Default check permissions

    If the page is meant to be accessed anonymously, give the IUSR_&#060;machinename&#062; account full control to the ASP page, and the folder and files where the database is located. <BR><BR>If the page has been secured such that the IUSR_&#060;machinename&#062; can&#039;t access the file or database, then ensure that the user&#039;s account that is being authenticated has full control to the appropriate folders and files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts