Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Compact and Repair  Protected Access Database
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Compact and Repair Protected Access Database

 Post Reply Post Reply
Author
wendy_2006 View Drop Down
Newbie
Newbie


Joined: 28 September 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote wendy_2006 Quote  Post ReplyReply Direct Link To This Post Topic: Compact and Repair Protected Access Database
    Posted: 16 October 2008 at 5:55pm
Hi all,
I set a password for my access database, and changed database_connection.asp like this:
strDbPathAndName="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\domain\...\database.mdb; Jet OLEDB:Database Password=123456789;"

Everything work fine.

But when I tried to compact  & repair database, I got the message:
Microsoft VBScript runtime error '800a0034'
Bad file name or number
/forum/admin_compact_access_db.asp, line 107

Line 107 in admin_compact_access_db.asp is:  objFSO.CopyFile strDbPathAndName, Replace(strDbPathAndName, ".mdb", "-backup.mdb", 1, -1, 1)


Does anyone have any idea ? Any help would be appreciated.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2008 at 6:12pm
Personally I would not bother password protecting the Access database as it is a complete waste of time and courses a number of issues.

It takes less then a few seconds to get into a password protected Access database using tools on the Internet that are widely available. We use them all the time when clients forget their passwords to their databases.

The best way to protect your Access database is place the database in a non public directory as described in the documentation below:-

http://www.webwiz.net/webwizforums/kb/moving_access_database.asp
Back to Top
wendy_2006 View Drop Down
Newbie
Newbie


Joined: 28 September 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote wendy_2006 Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2008 at 6:30pm
Thanks Bruce for quick reply. I moved my Access Database to a folder above the root directory, but I want an extra protection for my database (for some reasons). Anyway, thanks for this helpful advice. I am still looking for a solution.
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.