Solved

database

Posted on 2006-07-01
3
152 Views
Last Modified: 2010-04-05
Hi

Some times while i am using database (paradox for example) i save some data to notice later that it's gone or not saved. so my question is how can prevent losing data and how can i secure my database

regards
0
Comment
Question by:ibrobar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 50 total points
ID: 17055043
hmmm, i don't have this problem
usually the data is written to the DB when you do the Table1.POST, and it is therefore "saved"
I'm not sure what OS you are using, but if it's win95/98 it might be your smartdrv.exe caching settings

otherwise, you could try
Table1.FlushBuffers; or Table1.ApplyUpdates;
Description
Call FlushBuffers to cause the dataset to post all pending changes to the database, including any cached updates. Use FlushBuffers instead of CheckBrowseMode if it is important that cached record buffers are posted.

if you are using a TDatabase coponent, i suppose you can have some caching
Make sure you are doing a database.commit;

If you are using interbase/firebird there were a couple of version that had "forced_writes" turned off by default, meaning the data was not guaranteed to be written to disk if you had a power cut, etc.
You can turn this setting back on by using IBConsole/IBOConsole/GFix etc
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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