declare @data nvarchar(90)
declare @data1 datetime
begin try
set @data=@data+1
set @data1='dd'
end try
begin catch
print 'hello'
SELECT ERROR_NUMBER() AS ErrorNumber,
ERROR_SEVERITY() AS ErrorSeverity,
ERROR_STATE() as ErrorState,
ERROR_MESSAGE() as ErrorMessage;
end catch
posted on 2012-08-07 10:37  万德源  阅读(2607)  评论(0编辑  收藏  举报