Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Statement to get database, file size.

Status
Not open for further replies.

RemingtonSteel

Programmer
Jul 14, 2006
65
GB
Hello!

Can somebody help me get a SQL statement to get the size of a table and the whole database? I am using SQL 2005.

Thanks.
Gene
 
Take a look at these:

sp_spaceused 'TableName'
sp_helpdb 'DatabaseName'


-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top