Solved

database

Posted on 2006-07-01
3
148 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
3 Comments
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 50 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

6 Experts available now in Live!

Get 1:1 Help Now