July 14, 2012 at 5:43 am
Hello!
I have a database with 29 GB log file on the FULL recovery modell.
I want to shrink the log file, but I don't know it.
I make these:
1.)
a.) FULL Backup
b.) Log backup
c.) Shrink log file (DBCC SHRINKFIE(DBNAME, 10000))
This is not work.
-------------------
2.)
a.) Change database to SIMLE Recovery modell
b.) Checkpoint
c.) Shrink log file
This is not work.
How to I know shrink it?
Thanks!
July 14, 2012 at 8:16 am
Please read through this - Managing Transaction Logs[/url] and this: http://www.sqlservercentral.com/articles/Transaction+Log/72488/
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
July 14, 2012 at 10:41 am
Thanks Gail!
The problem is the log_reuse_wait_desc is replication, but this database is not publisher and not subscriber database. Now, how to I shrinking the transaction log?
Thanks!
July 14, 2012 at 12:27 pm
Read the second article I linked.
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
July 14, 2012 at 12:28 pm
The information from the following URL may provide some help.
August 12, 2012 at 2:12 pm
This command sloved my problem:
EXEC sp_removedbreplication
Thanks!
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply