Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When SQL Server is down, user enter his registration details in the asp.net page, take the details as offline. Once the server is up, need to save the details in sql db using ASP.Net(C#).
Posted
Updated 7-Sep-15 23:28pm
v2
Comments
F-ES Sitecore 8-Sep-15 5:48am    
Have a look at MSMQ. If the registration fails due to a sql connection you can put their details in an MSMQ message. You'll need something like a windows service or scheduled task that periodically reads the messages and tries to action them.

This is quite a complex task though and we have no idea how you have implemented your code yet so there is no point asking someone to give you the code, this is just a suggestion at a possible solution.

1 solution

Create Module like cache management i.e. offline data management. if SQL server is offline or connection is not established to SQL server, data will be temporary saved to this module. once SQL goes up save all data to db.

you need to maintain last time SQL offline, offline data time stamp etc. etc.
 
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