skip to main
|
skip to sidebar
電腦世界
2007年6月1日 星期五
縮小MSSQL資料庫的LOG檔
LOG要先備份(只備份LOG檔)
這個例子的資料庫名稱是project
use project
declare @fund1 nvarchar(100)
declare @fund2 nvarchar(100)
select @fund1='project'
select @fund2=@fund1 + '_log'
select @fund1,@fund2
BACKUP LOG @fund1 WITH TRUNCATE_ONLY
DBCC SHRINKFILE(@fund2, 500)
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
網誌存檔
►
2023
(1)
►
10月
(1)
►
2021
(2)
►
4月
(2)
►
2009
(1)
►
4月
(1)
►
2008
(5)
►
7月
(2)
►
5月
(1)
►
2月
(1)
►
1月
(1)
▼
2007
(4)
►
10月
(2)
▼
6月
(1)
縮小MSSQL資料庫的LOG檔
►
5月
(1)
關於我自己
胖子eddie
檢視我的完整簡介