database connection probs

Results 1 to 3 of 3

Thread: database connection probs

  1. #1
    chrisa Guest

    Default database connection probs

    ok, I&#039;m new to ASP, and I&#039;m trying to connect to an ASP database.<BR><BR>the support pages of my hosting say I should be using this connection string :=<BR><BR>&#060;%<BR><BR> Dim objConn<BR> Set objConn = Server.CreateObject("ADODB.Connection")<BR> objConn.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};" & _<BR> "DBQ=server.mappath(sgdb.mdb)"<BR> objConn.Open<BR><BR>%&#062;<BR>but I get this error when I try it<BR><BR>Microsoft OLE DB Provider for ODBC Drivers error &#039;80004005&#039; <BR><BR>[Microsoft][ODBC Microsoft Access Driver] Could not find file &#039;(unknown)&#039;. <BR><BR>/DatabaseConnect.asp, line 8 <BR><BR>help me! I just need this connection going then I can get on with the important stuff!<BR><BR>thanks<BR>Chris Ashworth<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: database connection probs

    Dim objConn<BR>Set objConn = Server.CreateObject("ADODB.Connection")<BR>objConn .ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};" & _<BR>"DBQ=" & server.mappath("sgdb.mdb")<BR>objConn.Open<BR><BR> j

  3. #3
    chrisa Guest

    Default RE: database connection probs

    I love this forum! can&#039;t thank you enough mate.<BR><BR>/me hugs everyone on this board<BR><BR>thanks again<BR><BR>Chris ashworth

Posting Permissions

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