You are here: Re: Second Transaction Log File « MsSQL Server « IT news, forums, messages
Re: Second Transaction Log File

Posted by laststubborn on 07/19/06 09:13

What do you think is it good or bad to remove the second log file ?
what would you do keep the log file or delete it? Is it gonna have any
negative effect on my log back and its size?

by the way this is the code that you recommended

-- Empty the data file
DBCC SHRINKFILE ('Test1data', EMPTYFILE);
GO
-- Remove the data file from the database
ALTER DATABASE AdventureWorks
REMOVE FILE Test1data;
GO


Erland Sommarskog wrote:
> laststubborn (arafatsalih@gmail.com) writes:
> > Could you please give me an example how to do it properly?
>
> Let's see, then I would have to look up the exact syntax in Books Online,
> since I don't know it by heart. As I said, use DBCC SHIRNKFILE with the
> EMPTYFILE option, and then ALTER DATABASE with REMOVE FILE. Please check
> Books Online for the exact syntax. There is also some good text that
> explains what EMPTYFILE is all about.
>
>
> --
> 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

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