?
Solved

database

Posted on 2006-07-01
3
Medium Priority
?
154 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 200 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

764 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