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 |
souLTower
Starting Member
39 Posts |
Posted - 2009-03-10 : 14:37:32
|
Hello all. I'm looking at a database trigger and I see the following at the end of the trigger:error: raiserror @errno @errmsg rollback transaction I recognize the "error:" as a label but it's not referenced elsewhere in the trigger. Is this a system label that I could use in any TSQL procedure or function?ThanksGod Bless |
|
guptam
Posting Yak Master
161 Posts |
Posted - 2009-03-11 : 02:37:28
|
It was most likely used as error handling with GOTO statement...ref: http://msdn.microsoft.com/en-us/library/ms180188.aspxIf you are not using it with your go-to statement you might want to look at fixing this if these code execute all actions in the trigger are rolled backed. Thanks.-- Mohit K. GuptaB.Sc. CS, Minor JapaneseMCITP: Database AdministratorMCTS: SQL Server 2005http://sqllearnings.blogspot.com/ |
|
|
|
|
|