Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- [TableName] = SO.[Name],
- [RowCount] = MAX(SI.ROWS)
- FROM
- SysObjects SO,
- SysIndexes SI
- WHERE
- SO.xtype = 'U'
- AND SI.Id = OBJECT_ID(SO.[Name])
- GROUP BY
- SO.[Name]
- ORDER BY
- 2 DESC
Advertisement
Add Comment
Please, Sign In to add comment