First, if you can avoid shrinking the production database, do it. Purchasing additional disk storage is almost always a more practical solution in the long run.
, / , , ( ), , .
, .
, , , , , . -, .
, . , , , , .
, DBCC SHRINKFILE.
:
:
EXEC sp_spaceused
:
DBCC SQLPERF('logspace')
/:
SELECT
name AS 'File Name' ,
physical_name AS 'Physical Name',
size/128 AS 'Total Size in MB',
size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Available Space In MB',
*
FROM sys.database_files;