Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Moving an Access DB
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Moving an Access DB

 Post Reply Post Reply
Author
Garrett1226 View Drop Down
Newbie
Newbie
Avatar

Joined: 09 January 2004
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Garrett1226 Quote  Post ReplyReply Direct Link To This Post Topic: Moving an Access DB
    Posted: 27 January 2004 at 1:14pm

Could someone explain the best way to establish a DSN-less connection to an Access DB outside of the web root where the ASP file referencing it is located?  I have dug through most of the tutorials and forum postings but can't seem to make the connection.  Here is the code I have:

Dim adoCon, dbPath
  dbPath = "c:\test\cropleads.mdb"
  Set adoCon = Server.CreateObject("ADODB.Connection")
  adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & dbPath

If I change the dbPath variable to the DB withing the ASP file's folder it works.

Thanks,

 

Back to Top
Garrett1226 View Drop Down
Newbie
Newbie
Avatar

Joined: 09 January 2004
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Garrett1226 Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2004 at 1:54pm
Nevermind,  was the simplest of mistakes.  When I copied over the original DB to a new folder somehow a password was placed on the DB.  As soon as I cleared the password everthing worked fine.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.