Hi experts,
This DB's size is 9,377 MB
Space Available is 8,395 MB
T-Log is 1MB
Simple Recovery model
Auto grow by 10 percent
SQL Server 2000 SP3a
There is only 1GB of data, so I need to free-up some disk space back to the operating system.
When I ran this in Query Analyzer, I cancelled it after 25 minutes (there was nothing else running on the server at this time):
DBCC SHRINKFILE (DBA_Data, 4000)
By not specifying NOTRUNCATE, I want all freed space to be returned to the operating system.
I guess I have a couple of questions:
1) is this the correct way to reduce the size of the data file?
2) About how long should it take to only free-up approx 4 GB of space ?
Thanks, John
This DB's size is 9,377 MB
Space Available is 8,395 MB
T-Log is 1MB
Simple Recovery model
Auto grow by 10 percent
SQL Server 2000 SP3a
There is only 1GB of data, so I need to free-up some disk space back to the operating system.
When I ran this in Query Analyzer, I cancelled it after 25 minutes (there was nothing else running on the server at this time):
DBCC SHRINKFILE (DBA_Data, 4000)
By not specifying NOTRUNCATE, I want all freed space to be returned to the operating system.
I guess I have a couple of questions:
1) is this the correct way to reduce the size of the data file?
2) About how long should it take to only free-up approx 4 GB of space ?
Thanks, John