Written by: 3/23/2009 10:31 PM
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
2 comment(s) so far...
Re: Getting a List of SQL Database Tables with One Statement Thanks for the info.
Re: Getting a List of SQL Database Tables with One Statement
Thanks for the info.
Re: Getting a List of SQL Database Tables with One Statement I like the cod every much as my cms software allows for sql statement execution and I forget the names of tables and columns at times.netflix free 14 day trail
I like the cod every much as my cms software allows for sql statement execution and I forget the names of tables and columns at times.netflix free 14 day trail