Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
carumuga
Posting Yak Master
174 Posts |
Posted - 2009-11-13 : 08:33:25
|
I would like to shrink the data files, .mdf and .ndf files but prior to that, should i need to check using the query the amount of space that can be recovered or free space available for recovery?Please send those query if that is the case.Thanks in advance. |
|
Pradip
Starting Member
32 Posts |
Posted - 2009-11-17 : 06:09:47
|
I don't thinks such query can form,Not Sure but I think different data having different type could have different size for shrink.www.silicus.compradipjain |
 |
|
Pradip
Starting Member
32 Posts |
Posted - 2009-11-20 : 01:17:10
|
Hi Chandra, below query my help you.SELECT name ,size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS AvailableSpaceInMBFROM sys.database_files;GOpradipjain |
 |
|
|
|
|