-- 檢查交易紀錄檔(Transaction log)的大小與使用量
DBCC SQLPERF(logspace)
GO
-- 查詢資料庫檔案與交易紀錄檔(Transaction log)檔的邏輯名稱
USE MyDB
GO
EXEC sp_helpfile
GO
-- 清空交易紀錄檔(Transaction log)
BACKUP LOG MyDB WITH TRUNCATE_ONLY
GO
-- 縮小交易紀錄檔(Transaction log)到200MB
USE MyDB
GO
DBCC SHRINKFILE ('MyDB_Log', 200)
GO
Brad Chen's Developer Blog Azure Database Data science Machine Learning Cloud
訂閱:
張貼留言 (Atom)
-
a bicycle manufacturer - Adventure Works Cycles Scenarios include Manufacturing , Sales , Purchasing , Product Management , Contact Manageme...
-
Guideline for SQL Server configuration, installation and database creation
-
1.安裝了Oracle Client,就可以用Oracle Net Manager工具來設定TNS連線設定(Tnsnames.ora) Oracle Client 18.3 Installation 安裝Oracle Client 18.3 2.啟動Oracle Ne...
沒有留言:
張貼留言