摘要: 今天在看PetShop 4.0的代码,发现它在Insert订单父子表时.使用动态SQL来Inert.不用存储过程也不用事务(当然使用的隐形事务).代码如下: EXEC sp_executesql N'Declare @ID int; Declare @ERR int; INSERT INTO Orders VALUES(@UserId, @Date, @ShipAddress1, @ShipA... 阅读全文
posted @ 2008-06-14 00:37 武广敬 阅读(1478) 评论(3) 推荐(0)