Gene Wirchenko (genew (AT) ocis (DOT) net) writes:
Quote:
Is there any way to get the SET ROWCOUNT value? |
I can't really think of a good way. You could to "SELECT 1 INTO #temp FROM
bigtable" and then check @@rowcount, but it's not good for performance when
SET ROWCOUNT is 0.
In any case, I recommend against any use of SET ROWCOUNT. This is a very
old command, which predates TOP and cursors. I see little reason to use it
today, and if it was up to me, it would be taken out of the product.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx