المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to know if my database update was done ?



C# Programming
05-11-2009, 12:00 AM
I have some place in my code that i update my database(using Access db).
After i did this update - i try to get from some other place in my code the fresh data from this database.
For some reason i see that i get the old database data (i get the data before i update this database). But when i add some sleeping time (Thread.Sleep(5000)) before getting the fresh data i see that the data was update correctly.

How can i fix this problem ?
How can i know if the update of the database table was done ?

http://www.barakasoft.com/script/Forums/Images/smiley_confused.gifhttp://www.barakasoft.com/script/Forums/Images/smiley_confused.gifhttp://www.barakasoft.com/script/Forums/Images/smiley_confused.gifhttp://www.barakasoft.com/script/Forums/Images/smiley_confused.gifhttp://www.barakasoft.com/script/Forums/Images/smiley_confused.gif