Solved

Refresh aplication using Delphi7+Firebird1.5

Posted on 2004-04-06
4
379 Views
Last Modified: 2010-04-05
hi , people  
 
I'm developing a application Client/Server.  
The Database (FireBird) is Located in the Server. And the Clients is working in  machines in the same network.  
Problem: The Inserts only is visible in the local client, and other client don't view the modifications, It's visible if client restart the program and reopening DataBase.  
I'm using IBX components (IBTable, IBQuery).  
I tried to use "Table.Refresh" OR ("Table.Close" / "Table.Open") but this solutions not worked.  
Somebody knows if exists some solution for this problem.
Thanks...
0
Comment
Question by:emaia
  • 3
4 Comments
 
LVL 12

Expert Comment

by:esoftbg
ID: 10769577
Do a double click on the IBTransaction component and choose Snapshot, I think this is the lowest isolation level. I have not network and can not taste it.

I hope it will work successful,
emil
0
 
LVL 12

Accepted Solution

by:
esoftbg earned 125 total points
ID: 10769633
After commitment of the transaction it will be visible modifications, without client restart the program and without reopening DataBase.
If selecting Snapshot isolation level does not effect, try consecutively other levels....

emil
0
 

Author Comment

by:emaia
ID: 10769830
Emil,  
 
I tried your first suggestion  didn't work. But I did  try  
"Read_Committed"  option and  worked.  
You can explain for me what happening in my application when I choose this option.  
Thanks one more time.  
 
-- Elielson
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 10769905
I found this explanation:

ISOLATION LEVEL determines how a transaction interacts with other simultaneous transactions accessing the same tables. The default ISOLATION LEVEL is SNAPSHOT. It provides a repeatable-read view of the database at the moment the transaction starts. Changes made by other simultaneous transactions are not visible.

SNAPSHOT TABLE STABILITY provides a repeatable read of the database by ensuring that transactions cannot write to tables, though they may still be able to read from them.

READ COMMITTED enables a transaction to see the most recently committed changes made by other simultaneous transactions. It can also update rows as long as no update conflict occurs. Uncommitted changes made by other transactions remain invisible until committed.

emil
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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