Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 my db is 2 GIGS, how can I shrink it?

Author  Topic 

sql777
Constraint Violating Yak Guru

314 Posts

Posted - 2006-06-02 : 17:57:09
Hi,

1. is it possible for me to see a report of which tables are consuming the most disk space?

2. how can I shrink this db? I know it can't be that big!

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-06-02 : 18:00:09

Use this script to analyze table space usage:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61762





CODO ERGO SUM
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2006-06-02 : 19:24:11
Also, what is your recovery model set to for this database? Oftentimes when people say "I don't know why my database is so large!" they don't realize that their transaction logs are 90% of the total space used.

Michael

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>

Opinions expressed in this post are not necessarily those of TeleVox Software, inc. All information is provided "AS IS" with no warranties and confers no rights.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-06-03 : 04:56:20
"Also, what is your recovery model set to for this database"

sql777 if you are not familiar with this issue you may want to have a look at:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=How%20Backup%20works,What%20type%20of%20backup%20should%20I%20use,Backup

At 167 posts sorry if this is "granny + eggs"!

Kristen
Go to Top of Page
   

- Advertisement -