1、C#中有一个例子呀
2、使用MS DTC
3、这个是数据库的主键,它的唯一索引
4、那要在datagrid的一些event中写东西,但这样做效率很底
5、在触发器中可以得到这个ID,select id from insert
2、使用MS DTC
3、这个是数据库的主键,它的唯一索引
4、那要在datagrid的一些event中写东西,但这样做效率很底
5、在触发器中可以得到这个ID,select id from insert
解决方案 »
- |ZYCWPF| LumiSoft.Net.RTP 当 RTP_Packet包太大的时候,如何进行分包发送,接收到再组包 谢谢
- 关于 强命名程序集
- 为什么智能设备里引用的System.Net里没有WebClient类?
- SqlParameter居然不如字符串拼接效率高,很怪的问题。
- 如何自己写程序实现类似.net中的“.”的功能
- 哪位大哥来帮忙看看Combobox的问题
- 求助!winform如何在光标处显示文本。
- 为什么在静态方法中不能访问该成员,详看代码
- 请帮忙,关于文本读取?
- C# WinForm 快速入门
- 如何把一个选项加入到右键菜单里,触发条件见正文
- 请问哪里有ASP.NET的BBS源代码下载?谢了。
不管触发器中的是更新,删除还是插入都要满足啊.
to:qqqdong
1、C#中有一个例子呀====>>在哪呀?
5、在触发器中可以得到这个ID,select id from insert=====>>如果得到?例如我一个存储过程的内容如下:
ALTER proc updateBM
@departmentid int,@name varchar(10),@peoples int
as
begin transaction
declare @error int,@rowcount int
update 部门 set name=@name,peoples=@peoples where departmentid=@departmentid
select @error=@@error,@rowcount=@@rowcount if @error<>0--有错误出现。
begin
rollback transaction
raiserror('An error occurred updating the 部门表.The error number
is:%d',16,1,@error)
return 0
end if @rowcount<>1--更新的结果如果不止一行。
begin
rollback transaction
raiserror('The update on the 部门 table didnot update 1 row.
the error number is :%d',16,1,@rowcount)
return 0
end
commit transaction
return 1
Problem one and five are the defficult!I wish ones who answer it quickly!