Home Forums Article Discussions Article Discussions by Author Discuss content posted by wall str33t what does the second @@error return? RE: what does the second @@error return?
Igor Micev
SSC-Dedicated
Points: 33109
More actions
March 21, 2012 at 5:33 pm
#1462479
@@error will have the right error code if selected immediately after raiserror command
raiserror('oh no, another error!', 16,1)
select @@error
Thanks
Igor Micev,My blog: www.igormicev.com