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...
Loading

Ravi ShekharPosted Aug 26, 2013, 4:06 AM
Iftikar HussainPosted Aug 26, 2013, 3:04 AM
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