If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > query to give all table sizes on a database (was "query help")

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-09-06, 18:08
sskris sskris is offline
Registered User
 
Join Date: Apr 2004
Posts: 101
query to give all table sizes on a database (was "query help")

Hi,
Does anyone has query to give all table sizes on a database?
Appreciate your help.
Thanks
Reply With Quote
  #2 (permalink)  
Old 03-10-06, 02:06
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,258
give all table sizes

Check sp_spaceused

Take the output from:
select 'exec sp_spaceused '+name from sysobjects where type='U'

and execute it on your database (assuming statistics is up to date)
Reply With Quote
  #3 (permalink)  
Old 03-10-06, 05:13
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
I was looking at this the other day.
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=62722
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On