DBCC SHRINKDATABASE('testdb', 10)
BACKUP LOG [データベース名] TO DISK = N'NUL'
BACKUP DATABASE testdb TO DISK=N'E:\MSSQL\backup\testdb.bak' WITH INIT, COMPRESSION BACKUP LOG testdb TO DISK=N'NUL' DBCC SHRINKFILE('testdb_log', 1) BACKUP LOG testdb TO DISK=N'NUL' DBCC SHRINKFILE('testdb_log', 1) BACKUP LOG testdb TO DISK=N'NUL' DBCC SHRINKFILE('testdb_log', 1)