You are here: Re: Count the number of rows in a UNION ALL statement « MsSQL Server « IT news, forums, messages
Re: Count the number of rows in a UNION ALL statement

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация