| 
 Posted by Marcin A. Guzowski on 01/08/07 19:42 
markjerz@googlemail.com wrote: 
> Hi, 
>  
> Should be quite simple but can someone please tell me the best way to 
> count the number of rows in an UNION ALL statement. 
>  
> I tried using @@ROWCOUNT but that doesn't seem to contain the correct 
> number. 
 
Why do you think so? Can you provide an example of a query with  
incorrect @@ROWCOUNT value returned? What's the version of SQL Server? 
 
 
--  
Best regards, 
Marcin Guzowski 
http://guzowski.info
 
[Back to original message] 
 |