摘要:
需引用using System.Transactions;建测试表create table t1( id int)建测试存储过程1create proc prc1asbegin traninsert into t1 values(1)commitgo建测试存储过程2create proc prc2asraiserror('error!',16,1)go示例代码Database db = DatabaseFactory.CreateDatabase(); //连接第一个数据库Database db1 = DatabaseFactory.CreateDatabase("c 阅读全文