Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have scheduled some tasks on server(basically put some exe on server & it runs at certain time to update database) which updates the table at a particular time in a day.
I want that even if for some reason on a day scheduled tasks fails then the system should be able to recover. Basically database shouldn't be in inconsistent state.
So what should I do in this case to handle the situation? Any help?

Thanks in advance.
Posted
Updated 7-Jun-10 2:12am
v2

Backup the database before running the maintenance task. If the maintenance task succeeds, do nothing. If it doesn't succeed, restore the database from the backup, and run the process again.

BTW, I'm not a DBA, but can't SqlServer do this internally?
 
Share this answer
 
v2
No buddy, everything should be automatic for example if we will become unable to make a connection with database server then in that case system should automatically recover the system & reprocess again....something like that
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900