September 19, 2008 at 6:46 am
It's not possible. All data modifications are logged and the log entries cannot be discarded from the log until the transaction has committed and the data pages changed by that modification have been written to disk.
Some operations (truncate table) are minimally logged, meaning that only a small amount is written to the log, as compared with fully logged operations (like delete) where the entire change is written to the transaction log in case it's necessary for rollback/database recovery.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 19, 2008 at 8:04 am
Is it just me or was some of the advice in this topic very very risky?
September 19, 2008 at 8:17 am
thanks..:)
September 19, 2008 at 9:15 am
Shark Energy (9/19/2008)
Is it just me or was some of the advice in this topic very very risky?
It's not just you. Some were more than 'very risky'
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 29, 2008 at 8:00 am
Just perform the Shrink File using SQL server 2005 Managment studio. and select option "Release unused Space"
September 30, 2008 at 6:35 am
Issue DBCC SHRINKFILE ('Hr_database_log',TRUNCATEONLY)
September 30, 2008 at 8:14 am
🙂 Thank You.
April 3, 2009 at 4:47 am
Hi
U can do this by the following script
DBCC SHRINKDATABASE('DATABASENAME',TRUNCATEONLY)
April 3, 2009 at 9:21 am
July 28, 2009 at 4:10 am
barsuk (10/4/2005)
something like that:
Backup LOG Hr_database WITH NO_LOG
GO
DBCC SHRINKFILE ('Hr_database_log',TRUNCATEONLY)
GO
Brilliant, thanks for the help. This solution worked for me.
Viewing 10 posts - 46 through 54 (of 54 total)
You must be logged in to reply to this topic. Login to reply