阅读背景:

使用ExecuteNonQuery重写SQL服务器中受影响的行吗?

来源:互联网 

I have an insert statement that pulls some data into a few table variables and then based on that data does a few inserts into several tables. I only care about the rows that are inserted into the real tables and not the table variables, but ExecuteNonQuery will return the sum of all @@ROWCOUNT's. What I would like to know is there a way to override the rowcount that is returned using ExecuteNonQuery? I have an insert statement that pulls some data




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: