tutorials, tips and tricks to design a Sql Server, Cloud Service . Micrsoft Interview Question
Friday, January 21, 2011
How to get number of row in each table in database
SELECT obj.NAME, ind.rowcnt FROM sysindexes AS ind INNER JOIN sysobjects AS obj ON ind.id = obj.id WHERE ind.indid < 2 AND OBJECTPROPERTY(obj.id, 'IsMSShipped') = 0 ORDER BY obj.NAME
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment