Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««123

what does the second @@error return? Expand / Collapse
Author
Message
Posted Wednesday, March 21, 2012 5:33 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 10:22 AM
Points: 2,725, Visits: 2,635
@@error will have the right error code if selected immediately after raiserror command

raiserror('oh no, another error!', 16,1)
select @@error

Thanks
Post #1270564
Posted Friday, February 01, 2013 5:45 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, March 17, 2014 7:22 AM
Points: 228, Visits: 211
Previous question also same like this.... easy only.....





Manik
Go fast as possible






Manik
You cannot get to the top by sitting on your bottom.
Post #1414607
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse