It often happens that you need to know how big a table is. There are many reasons for this: finding which tables have the most rows; understanding which tables tend to grow the fastest; find which table is using the most space.
I found a nice query on stackexchange.com that listed the tables, row counts and data sizes in a database:
I'm keeping this blog as a repository for SQL tips and tricks I have learned over my time working with SQL Server.
Showing posts with label table. Show all posts
Showing posts with label table. Show all posts
Thursday, 12 February 2015
Tuesday, 25 August 2009
List tables files and filegroups
Here's a simple query to get a list of database tables and the files and filegroups they are assigned to:
I found this helpful tip on blog.sqlauthority.com and added a few little bits for better readability.
I found this helpful tip on blog.sqlauthority.com and added a few little bits for better readability.
Subscribe to:
Posts (Atom)