标签:
begin try
select 1/0
end try
begin catch
select
error_number() as ‘number‘,
error_line() as ‘line‘,
error_message() as ‘message‘,
error_severity() as ‘severity‘,
error_state() as ‘state‘
end catch
标签:
原文地址:http://www.cnblogs.com/woshare/p/4307302.html