VIJAY BLOGS ON SQL
Wednesday, September 30, 2009
Shrink Log File
--To shrink the log file
USE DatabaseName
Go
DBCC SHRINKFILE(
, 1)
BACKUP LOG
WITH TRUNCATE_ONLY
DBCC SHRINKFILE(
, 1)GO
Go
--truncates the log by discarding all but the active log
--suggested to take a backup of the database immediatelty after this
1 comment:
daspeac
October 5, 2010 at 3:29 AM
you may also get the
sql server 2005 data recovery
tool
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
you may also get the sql server 2005 data recovery tool
ReplyDelete