Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Verifying an MS Access db
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Verifying an MS Access db

 Post Reply Post Reply
Author
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary Quote  Post ReplyReply Direct Link To This Post Topic: Verifying an MS Access db
    Posted: 22 February 2005 at 12:24pm
Hi
 
I am provided with a rather large Access mdb (180MB+) every 2 hours and have an automated job in SQL Server which imports and processes the data from the mdb.
The problem that I have from time to time is that the mdb is incomplete or corrupt, yet SQL still manages to read what data there is (sometimes).
My question is - Is it possibly to somehow verify that the mdb is complete and in tact? The filesize does vary all the time (between 180 and 200 MB), so filesize checking wouldn't be the best option.
 
Any Ideas?
 
Thanks
Gary
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2005 at 12:54pm
I use a very similar process in an DTS task. I basically wrote a small VB6 app that tries to repair the Database (basic Compact Repair methods) and if it fails I throw an exception so DTS recognizes it as a failure. This I have integrated into my DTS to not continue if it happens like so:
Hope that helps
Back to Top
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2005 at 1:01pm
Cool - all I have to do now is figure out how to create the VB app Embarrassed
 
Having said that, it'll be interesting to see how long the repair task will take considering the size of the mdb.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2005 at 2:53pm
my db's are approx. 600MB and the compact repair takes about 4 minutes
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2005 at 3:15pm
I rewrote the app in .net as I don't have the vbsource anymore, you can download it here
(Keep the files in the zip together)
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.