SQLSERVER 2008存储过程执行返回-6是什么意思? 下面的存储过程我只是模拟了一下而已
过程创建useheal;goalterproceduredbo.ttasbegindeclare@tdatetimebegintryset@t=CAST('0000'as...
过程创建
use heal;
go
alter procedure dbo.tt
as
begin
declare @t datetime
begin try
set @t = CAST('0000' as datetime)
end try
begin catch
end catch
end
过程执行
USE [heal]
GO
DECLARE @return_value int
EXEC @return_value = tt
print @return_value
GO 展开
use heal;
go
alter procedure dbo.tt
as
begin
declare @t datetime
begin try
set @t = CAST('0000' as datetime)
end try
begin catch
end catch
end
过程执行
USE [heal]
GO
DECLARE @return_value int
EXEC @return_value = tt
print @return_value
GO 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询