如何在sqlserver的存储过程加事务的控制 谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 begin tranrollback orcommit http://topic.csdn.net/t/20020708/12/857917.html create sp_Test( @testParam int)asBegin begin try begin tran if @@ERROR <> 0 begin rollback tran end else begin commit tran end end try begin catch --Exception handling here. end catchEndgodrop proc sp_Test 求数字组合 关于日益增大的数据库文件? 关于批量更新 请问如何对比版本号才能知道我下载的SQL Server 2005要不要安装SP2呢? 一条最新的查询语句 在SQLServer中,怎样返回字符的ANSI编码? SQLServerAgent服务启动后又停止了 if else 条件转化语句在函数中怎么用? 怎样避免SELECT与UPDATE之间互锁 在SqlServer的存储过程中,如何判断传进来的字符串参数是诸如"12:12:00"的时间格式。 这个语句哪里错了?? 通过 SQL Profiler 跟得到的文件,将其导入到数据库中后。表达结构谁明白啊?
or
commit
(
@testParam int
)
as
Begin begin try
begin tran
if @@ERROR <> 0
begin
rollback tran
end
else
begin
commit tran
end end try
begin catch
--Exception handling here.
end catchEnd
go
drop proc sp_Test