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
 General SQL Server Forums
 New to SQL Server Programming
 space issue

Author  Topic 

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2007-12-26 : 00:44:53
I got a space issue on F drive
Total drive capacity 581 GB
Now free space is 4.4 GB ONLY
F:\MSSQL\DATA\..NDF---163072128(163 GB)
F:\MSSQL\DATA\...MDF--441785344(441 GB)
I am trying to shrink the database to get some free space on F:\ drive but "US\SVC_LADadmin" is executing delete statement on this database. so I could not perform any activity at this time
Please suggest how to proceed further?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-12-26 : 10:00:49
You should shrink in smaller sizes and not all at once. Search the script library for dbcc shrinkfile and you'll find MVJ's script to do this.

Shrinking will only help if you have free space inside the database files though. How much free space do you have in each file?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2007-12-26 : 11:20:57
You can use this script to see if there is any unused space in a database file that you can reclaim with a shrink.
Get Server Database File Information
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=89058


You can use this script to shrink a database data file.
Shrink DB File by Increment to Target Free Space
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=80355





CODO ERGO SUM
Go to Top of Page
   

- Advertisement -