OrthoDocSoft
Programmer
Folks,
When I was tyring to get access databases to work (foolishly) I came across some error coding that I though was clever which looked something like this:
Even tho I find MSSQL Server to be very sturdy, I'm about to expand my alpha site from 5 stations to 25, and I want to be prepared for the more common errors that may occur, especially collisions, when the more important MS SQL activities (ie "INSERTS" and "UPDATES" may occur. If the insert or update has an error, I want to retry it a few times.
Can anyone provide an simple, easy routine that GETS ME STARTED along this path? Should I stick with the construct shown above?
Much appreciated.
Ortho
"you cain't fix 'stupid'...
When I was tyring to get access databases to work (foolishly) I came across some error coding that I though was clever which looked something like this:
Code:
On error goto MSSQLErrorHandler
INSERT....
~~
Exit Sub
MSSQLErrorHandler:
Select Case Err
Case 3197
(do something)
Case (other number)
(do something else)
End Select
If Not TooManyTimes = True then
Resume
Else
Exit Sub
EndIf
Even tho I find MSSQL Server to be very sturdy, I'm about to expand my alpha site from 5 stations to 25, and I want to be prepared for the more common errors that may occur, especially collisions, when the more important MS SQL activities (ie "INSERTS" and "UPDATES" may occur. If the insert or update has an error, I want to retry it a few times.
Can anyone provide an simple, easy routine that GETS ME STARTED along this path? Should I stick with the construct shown above?
Much appreciated.
Ortho
"you cain't fix 'stupid'...