You are here: Re: Shrinking database log used for mirroring « MsSQL Server « IT news, forums, messages
Re: Shrinking database log used for mirroring

Posted by Erland Sommarskog on 11/22/06 22:12

(d.grabov@gmail.com) writes:
> I've been trying with:
>
> BACKUP LOG dbname WITH TRUNCATE_ONLY
> DBCC SHRINKFILE (dbname)
>
> but the query cannot execute because of the mirroring

Which of them? Certainly, I can imagine that BACKUP LOG WITH TRUNCATE_ONLY
is not permitted when you have mirroring. Then again, why would you
want to truncate the log? Just back it up to remove the active portion.

It may still be that you cannot shrink a log when you have mirroring
active. In such case, you will have to make the choice of smashing the
mirror to be able to shrink the log, or remember the old proverb "disk
is cheap".

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация