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!

Shrink Database 1

Status
Not open for further replies.

dbomrrsm

Programmer
Feb 20, 2004
1,709
GB
I have a DB that has a log file that is 174 Mb in used space and 3GB of Free space.

I have backed up the database then shrunk it but the 3GB of free space remains and I cant get rid of it.

Any suggestions.

TIA

DBomrrsm
 
Hi, just execute this in Query analyser :

backup log your_DB_Name with no_log
DBCC SHRINKDATABASE (N'your_DB_Name', 0,TRUNCATEONLY)

works like a charm for me ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top