Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to   
Web Server Talk Web Server Talk > Free Databases support forum > Microsoft SQL server > SQL Server > sp_spaceused




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

write2manish is offline     sp_spaceused  
write2manish


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for write2manish Click here to Send write2manish a Private Message Find more posts by write2manish Add write2manish to your buddy list
 
12-09-04 07:26 PM

Hi, 

I am trying to solve a little puzzle. My database size is like 30 GB and i u
sed sp_spaceused to find out which table in my database is the one using the
 max. size. After looking at all the table sizes using sp_spaceused the tota
l came out to be only 2GB??? I am not sure who is using the other 28GB... An
yone any suggestions????

Thanks in advance,
Manish




[ Post a follow-up to this message ]



    Re: sp_spaceused  
evan b


Report This Message To A Moderator Edit/Delete Message


 
12-10-04 07:53 AM

Manish
I MAY have a similar problem - in another post as yet no reply
I have 4 tables with 20+million rows (3rd party app) anyway these tables are
reporting their space used in the 50+gigabytes but the space they are
claiming is about 70-90 gb is there anyway to force them to shrink to
recover this space
I know if you're running sql2k you can run dbcc cleantable and it fixes this
issue - I run 7.0 so my only option is to rebuild the tables and Im waiting
for 6 new drives for the array to do that.

Regards
evan
"write2manish" <write2manish.1h0tp6@mail.webservertalk.com> wrote in message
news:write2manish.1h0tp6@mail.webservertalk.com...
>
> Hi,
>
> I am trying to solve a little puzzle. My database size is like 30 GB
> and i used sp_spaceused to find out which table in my database is the
> one using the max. size. After looking at all the table sizes using
> sp_spaceused the total came out to be only 2GB??? I am not sure who is
> using the other 28GB... Anyone any suggestions????
>
> Thanks in advance,
> Manish
>
>
>
> --
> write2manish
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message629190.html
>







[ Post a follow-up to this message ]



    Re: sp_spaceused  
Tibor Karaszi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-10-04 07:53 AM

Transaction log?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/


"write2manish" <write2manish.1h0tp6@mail.webservertalk.com> wrote in message
news:write2manish.1h0tp6@mail.webservertalk.com...
>
> Hi,
>
> I am trying to solve a little puzzle. My database size is like 30 GB
> and i used sp_spaceused to find out which table in my database is the
> one using the max. size. After looking at all the table sizes using
> sp_spaceused the total came out to be only 2GB??? I am not sure who is
> using the other 28GB... Anyone any suggestions????
>
> Thanks in advance,
> Manish
>
>
>
> --
> write2manish
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message629190.html
>







[ Post a follow-up to this message ]



    Re: sp_spaceused  
evan b


Report This Message To A Moderator Edit/Delete Message


 
12-10-04 12:53 PM

Obvious also did you total up the indexsizes?
Ive seen tables with indexes being bigger than the data


"Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote in
message news:%23Pp6mzo3EHA.3616@TK2MSFTNGP11.phx.gbl...
> Transaction log?
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
>
> "write2manish" <write2manish.1h0tp6@mail.webservertalk.com> wrote in
message
> news:write2manish.1h0tp6@mail.webservertalk.com... 
>
>







[ Post a follow-up to this message ]



    Re: sp_spaceused  
Stephen Yuan Jiang [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-10-04 10:54 PM

How you find out your database size?  Did you add log file usage as part of
your database size?

Assume all numbers is correct, it is still possible that a database could
have 30 GB and only use 2GB of its space is used.  In this case, you can run
DBCC SHRINKDATABASE to reclaim unused space.

You could also use DBCC UPDATEUSAGE to correct space usage information in
each table (if you suspect that some table has wrong space usage information
stored in the system table).

--
Stephen Jiang
Microsoft SQL Server Storage Engine

This posting is provided "AS IS" with no warranties, and confers no rights.



"write2manish" <write2manish.1h0tp6@mail.webservertalk.com> wrote in message
news:write2manish.1h0tp6@mail.webservertalk.com...
>
> Hi,
>
> I am trying to solve a little puzzle. My database size is like 30 GB
> and i used sp_spaceused to find out which table in my database is the
> one using the max. size. After looking at all the table sizes using
> sp_spaceused the total came out to be only 2GB??? I am not sure who is
> using the other 28GB... Anyone any suggestions????
>
> Thanks in advance,
> Manish
>
>
>
> --
> write2manish
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message629190.html
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:16 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Back To The Top
Home | Usercp | Faq | Register