in

SQL Server Community Blogs

Voices of the SQL Server Community

Browse by Tags

  • Different ways to count rows from a table

    The most reliable and suggested method is to use count(*) 1 Select count(*) from table_name But other than that you can also use one of the followings 2 select sum(1) from table_name 3 select count(1) from table_name 4 select rows from sysindexes where object_name(id)='table_name' and indid<2...
    Posted to Madhivanan (Weblog) by Madhivanan on 11-02-2007
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems