Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Finarfin
Starting Member
28 Posts |
Posted - 2004-06-14 : 06:36:32
|
| Hello,I m want to insert lines in a table severall times (with a while loop). And sometimes, there is an error occuring. I would like that the loop continues runing even if the error is > 20, but when an error is appening, I also want to writte it in a log file I created earlier.I found the raiserror which makes me able to catch the error and put my own error message if I want.Is that possible to use raiserror for the application I want to create?I know my english isnt very good, so if you did not understand what I need, please ask me, I'll be glad to answer.Thank you all,Romain |
|
|
derrickleggett
Pointy Haired Yak DBA
4184 Posts |
Posted - 2004-06-14 : 08:27:35
|
| I would like that the loop continues runing even if the error is > 20.Why??? What kind of an insert could you possibly be doing on purpose that would create this type of error.MeanOldDBAderrickleggett@hotmail.comWhen life gives you a lemon, fire the DBA. |
 |
|
|
Finarfin
Starting Member
28 Posts |
Posted - 2004-06-14 : 08:43:17
|
| In fact if there is an error, i don t want to insert. But i want not exit from the procedure.Thank you all,Romain |
 |
|
|
|
|
|