top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Name 3 ways to get an accurate count of the number of records in a table?

0 votes
486 views
Name 3 ways to get an accurate count of the number of records in a table?
posted Nov 26, 2014 by Vinitha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer
SELECT * FROM table1
SELECT COUNT(*) FROM table1
SELECT rows FROM sysindexes WHERE id = OBJECT_ID(table1) AND indid < 2
answer Nov 26, 2014 by Manikandan J
...