Solved

Repairing Tables, Query in an Application Program....

Posted on 2001-07-17
12
182 Views
Last Modified: 2012-05-04
if example i have an application. and suddenly the power cuts off and it was not closed. then the tables or query or databases will be corrupted.. how do i repair this?
i want that when i click the button the tables or query or databases will be fixed..... with a message "tables are fixed.."
0
Comment
Question by:aerokevs
  • 4
  • 3
  • 2
  • +2
12 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6292458
? what database

(best way is to restore a savecopy)

if paradox then take a look to
http://www.borland.com/devsupport/bde/utilities.html
about tutility and its sample program

even you should raise the points,
because its not an very very very easy question

meikl ;-)
0
 
LVL 30

Expert Comment

by:third
ID: 6292598
this is not some kind of a program specific but your database instead. databases have their own recovery management. check your database software... :)
0
 
LVL 4

Expert Comment

by:jsweby
ID: 6293221
I can do it for MS Access but as Meikl says, 5 points isn't a lot...

J.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Accepted Solution

by:
HotRod40 earned 5 total points
ID: 6297729
Use the BDE table correction program. This allows you to repair and check your table for any corruption.The program name is: Tutil32.exe.
Check this URL for TUtility Dlls for a download:

http://www.borland.com/devsupport/bde/utilities.html

Hope this helps
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6297856
oh,

next one who is repeating comments from another experts as answer

hotrod40, see the first comment in this thread
0
 

Expert Comment

by:HotRod40
ID: 6298066
Sorry didnt read it correctly
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6311058
Meikl,

You proposed that as an answer for me ages ago, and it worked a treat.  I was using Paradox tables and had a programming running on a PC that was hanging all the time.  Each time my app was rerun, I just ran a check on the DBs and fixed them.

Since Interbase has become free, I dont use Paradox at all anymore - and so far I haven't had this problem at all.  My suggestion would be to move away from the archaic DOS tables and use Interbase :)

jsweby: I'd be interested in seeing how you can do it with MS Access.  Is it a COM thing, or is it a native call?


Stu.
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6311132
Oh dear :)
0
 
LVL 4

Expert Comment

by:jsweby
ID: 6311351
Stu,

Doing it with Access is a COM issue, talking directly to the DAO.

J.
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6312843
Cheers J.  I'll have to look into it sometime!

Stu.
0
 
LVL 4

Expert Comment

by:jsweby
ID: 6312994
If I can find a moment I'll put some code here on it.

J.
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6315332
Let me know if you find anything and I'll open a new question for you :)

Ta moochly.

Stu
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now