1. Open SQL Server Management Studio and run following SQL query:
USE SharePoint_Config
BACKUP LOG SharePoint_Config WITH TRUNCATE_ONLY
This will truncate log file but won't reduce actual file size.
2. To shrink actual file run:
USE SharePoint_Config
DBCC SHRINKFILE (N'SharePoint_Config_log', 50)
50 - Log file target size in MB.
OR
SQL Server Management Studio > Databases > SharePoint_Config > Tasks > Shrink > Files
3. To prevent future growth of the log file run:
USE SharePoint_Config
ALTER DATABASE SharePoint_Config SET RECOVERY SIMPLE
OR
SQL Server Management Studio > Databases > SharePoint_Config > Properties > Options > Recovery Model > Simple
Microsoft SQL Server 2005
USE SharePoint_Config
BACKUP LOG SharePoint_Config WITH TRUNCATE_ONLY
This will truncate log file but won't reduce actual file size.
2. To shrink actual file run:
USE SharePoint_Config
DBCC SHRINKFILE (N'SharePoint_Config_log', 50)
50 - Log file target size in MB.
OR
SQL Server Management Studio > Databases > SharePoint_Config > Tasks > Shrink > Files
3. To prevent future growth of the log file run:
USE SharePoint_Config
ALTER DATABASE SharePoint_Config SET RECOVERY SIMPLE
OR
SQL Server Management Studio > Databases > SharePoint_Config > Properties > Options > Recovery Model > Simple
Microsoft SQL Server 2005
'Databases' 카테고리의 다른 글
MS-SQL 의 데이타 복구 방법(MDF, LDF 파일) 서방님 (0) | 2011.05.13 |
---|---|
MS SQL 트랜잭션 로그를 줄이는 방법 (0) | 2011.05.13 |
SQL Server에서 tempdb 데이터베이스를 축소하는 방법 (0) | 2011.05.13 |
[MS-SQL]Random하게 Row를 불러오기 (0) | 2011.05.03 |
mysqldump 명령어(테이블별 덤프, 5.0->4.0다운그레이드덤프) (0) | 2011.04.27 |