skip to main
|
skip to sidebar
SQL SERVER DBA
Wednesday, March 24, 2010
Shrinking Truncate Log File
SQL SERVER – Shrinking Truncate Log File – Log Full
Sometime, it looks impossible to shrink the Truncated Log file. Following code always shrinks the Truncated Log File to minimum size possible.
USE DatabaseName
GO
DBCC SHRINKFILE(
, 1)
BACKUP LOG
WITH TRUNCATE_ONLY
DBCC SHRINKFILE(
, 1)
GO
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
▼
2010
(13)
►
April
(2)
▼
March
(11)
DBCC COMMANDS
LOCKS IN SQL SERVER 2005
System Databases in SQL Server 2005
Shrinking Truncate Log File
Restore Database
Restore System Databases
Transaction Log – Part 4
TRANSACTION LOG –PART- 3
TRANSACTION LOG –PART 2
Transaction log part1
database suspect
About Me
Ramakrishna
View my complete profile
No comments:
Post a Comment