I am working on windows application. Suppose i am performing any updation in sql server database and my server system is off due to any reason like light problem, hang server etc.
How can i manage this problem. Now user want some message 'your server system is down unexpectedly'. and all data rollback.
Please give me any idea to manage...
I need some idea
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Iftikar HussainRank #423 · 5.9K reputationPosted Aug 25, 2013, 11:04 PM EDT
In that case you should do all your database operation (insert/update/delete) with TRANSACTION in sql. Please refer the below link
http://www.tutorialspoint.com/sql/sql-transactions.htm
http://technet.microsoft.com/en-us/library/ms188929.aspx
Regards,
Iftikar
Ravi ShekharRank #673 · 3.6K reputationPosted Aug 26, 2013, 12:06 AM EDT