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
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