I have a database which has a datafile of 81 gb of which 42 gb has been used and 38 gig is free.
The log file is only 18mb .How do I shrink the datafile/db so that its size would be at 42gb (to regain the free space)?
You use DBCC SHRINKFILE to remove the free space from the file. Be sure to leave enough space for the system to function correctly. I'd also check the growth settings of the data file so that it grows at the correct rate based on your applications needs.
Denny
MCSA (2003) / MCDBA (SQL 2000)
--Anything is possible. All it takes is a little research. (Me)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.