Created
May 26, 2010 15:22
-
-
Save snahor/414623 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- SQL Server | |
SELECT [Tables] = so.name, | |
[Rows] = 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment