|
2
|
| John Lemp Chris Heald · 技术社区 · 16 年前 |
|
|
1
5
不知道这是否有效,但您是否尝试过将nocount设置为on(然后在最终查询之前将nocount设置为off)? 更新:这篇博文和评论似乎表明这确实有效: http://petesbloggerama.blogspot.com/2006/10/note-to-self-set-nocount-on-not.html |
|
|
2
0
不,在ADO.NET或SQL Server中无法重写或更改该行为。 唯一的选择是捕获感兴趣的行数,并将其放入变量中并返回。 |