Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favourite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved 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: 4061 | Views in the last 30 days: 7
 
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...

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

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...

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

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones