Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Find Largest size Tables in a Database

By Hari Sharma,

HOW To USE:

1. If you want all the user tables in the database with largest db size then:
EXEC sp_LargestTables [No Need to pass parameters]

2. If you want only 3 tables in the database with largest db size then:
EXEC sp_LargestTables 3

3. If you want only 20 tables in the database with largest db size including system tables then:
EXEC sp_LargestTables 20,1

Total article views: 4168 | Views in the last 30 days: 2
 
Related Articles
BLOG

Find the largest tables in a database (II)

I once wrote a post to find the largest tables in a database, and now after studying PowerShell, I f...

FORUM

Find Largest size Tables in a Database

Comments posted to this topic are about the item [B]Find Largest size Tables in a Database[/B] I tri...

BLOG

Find the largest tables in a database

From time to time, I need to find the largest tables in terms of rows / used space / total space etc...

FORUM

Largest Replicated Database

What is the largest database any of you have ever replicated? Rob DeMotsis Sr. SQL Server DBA P...

FORUM

The Largest Database

It's not for me, but who out there wants to work on the largest database? The NSA is collecting ...

Tags
 
Contribute