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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Shrink a SQL 2005 Database

Status
Not open for further replies.

pbibler

Technical User
Mar 30, 2005
18
US
When I try to shrink one of my db's, I get the following error: "File ID 1 of database ID 6 cannot be shrunk as it is either being shrunk by another process or is empty."

The database is 140GB, of which it shows 40GB free, I just can't get it to shrink. I have done DBCC shrinkfile, and DBCC Shrinkdatabase, as well as DBCC Updateusage. I can't back it up because I don't have the space anywhere to back it up (don't ask, I know how that sounds. The server is being backed up in its entirety, at least.)

Any ideas? Much appreciated.

Thanks,

Paul
 
How many files does the database have? Is the autoshrink check box checked in the database properies?

Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005)

My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top