Yes, the work is retained, but the file is not shrunk.
Main Topics
Browse All TopicsIn Microsoft SQL Server we deleted a lot of data in a column in our table by updating with NULLS, which has not been reclaimed.
I am currently running dbcc shrinkfile (datafile, emptyfile) to empty the file into another on the same drive.
It's working and it's removing data from the primary data file and moving it to the second data file.
However, the system will run out of disk space before It's completed.
How do I shrink the bulk-logged database file while the dbcc shrinkfile emptyfile is running?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I.Try to free some space first:
1. Shrink datafile to the last occupied extent (db sector)
DBCC shrinkfile (datafile, TRUNCATEONLY)
2. Shrink all database files to the last occupied extent (db sector)
DBCC shrinkdatabase(N'YourDatab
II. Else defragment structures.
Compressed tables with packed indexes are better read, but worse written.
You can change table fill ratio in db maintenance job later.
1.Shrink datafile with defragmentation
a) partial - specify number for target_MB_size parameter
DBCC shrinkfile (datafile,target_MB_size)
b) full
DBCC shrinkfile (datafile)
2. Shrink all database files with defragmentation
a) partial - specify number for target_percent_integer parameter
DBCC shrinkdatabase(N'YourDatab
b) full
DBCC shrinkdatabase(N'YourDatab
Business Accounts
Answer for Membership
by: ispalenyPosted on 2007-07-30 at 17:44:35ID: 19597007
Terminate the shrink operation. Any completed work is retained. /en-us/lib rary/ms190 488.aspx
From http://msdn2.microsoft.com