I have a .net (vb) program (windows service) that gets to a stage where it needs to update a sql server by calling a stored procedure. This works fine but occasionally the sql server could be unavailable for a few seconds due to connectivity issues. This update is absolutely critical so I want to wrap it in some code to retry in case of failure to communicate with the sql server. Is there any best practice or examples for adding this resilient retry functiionality?
Thanks in advance