Click here to Skip to main content
Click here to Skip to main content
Alternative Tip
Go to top

Record Count of Tables in SQL Server

, 26 Aug 2010
Rate this:
Please Sign up or sign in to vote.
Also use either this one:SELECT OBJECT_NAME(SYSINDEXES.id), SYSINDEXES.rowcntFROM SYSINDEXES INNER JOIN SYSOBJECTS ON SYSINDEXES.id = SYSOBJECTS.idWHERE SYSINDEXES.indid < 2 AND SYSOBJECTS.xtype = 'U'or this one:SELECT OBJECT_NAME(id),rowcnt FROM SYSINDEXES WHERE...
Also use either this one:
SELECT OBJECT_NAME(SYSINDEXES.id), SYSINDEXES.rowcnt
FROM SYSINDEXES INNER JOIN SYSOBJECTS ON SYSINDEXES.id = SYSOBJECTS.id
WHERE SYSINDEXES.indid < 2 AND SYSOBJECTS.xtype = 'U'
 

or this one:
SELECT OBJECT_NAME(id),rowcnt FROM SYSINDEXES WHERE OBJECTPROPERTY(id,'IsUserTable')=1 AND indid<2
 
</br>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

tarun_j200

India India
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web03 | 2.8.140922.1 | Last Updated 26 Aug 2010
Article Copyright 2010 by tarun_j200
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid