SQL Server ã§ãã¡ã¤ã« ãµã¤ãºã縮å°ããã«ã¯ï¼DBCC SHRINKFILEï¼
SQL Server ã§ãã¡ã¤ã« ãµã¤ãºã縮å°ãããå ´åã«ã¯ DBCC SHRINKFILE ã³ãã³ãã次ã®ããã«å©ç¨ãã¾ãã
DBCC SHRINKFILE(è«çå, 縮å°å¾ã®ãµã¤ãº)
ãã£ã¹ã¯ãæºæ¯ã«ãªãããããµã¤ãºã大ãããªã£ã¦ãã¾ã£ãå ´åãªã©ã«ããã®ã³ãã³ããå©ç¨ãã¦ããã¼ã¿ãã¼ã¹ ãã¡ã¤ã«ï¼.mdfï¼ã¾ãã¯ãã©ã³ã¶ã¯ã·ã§ã³ ãã° ãã¡ã¤ã«ï¼.ldfï¼ã®ãµã¤ãºãå°ãããããã¨ãã§ãã¾ãããã¡ã¤ã«ã®è«çåã¯ã次ã®ããã« database_files ã·ã¹ãã ãã¥ã¼ãã¯ã¨ãªãããã¨ã§ç¢ºèªãããã¨ãã§ãã¾ãã
USE ãã¼ã¿ãã¼ã¹å SELECT * FROM sys.database_files