Kamis, 03 Maret 2011
SQL Server: Count Rows in Tables and its Size
In this post we will see how to count rows in all the tables of a database using SQL Server. A couple of months ago I had written a similar query Count Rows in all the Tables of a SQL Server Database using DBCC UPDATEUSAGE and the undocumented stored procedure sp_msForEachTable. However the rows returned using this approach could be inaccurate at times. I consulted my DBA friend Yogesh who told
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar