You are here: Re: Setting recover model with TSQL « MsSQL Server « IT news, forums, messages
Re: Setting recover model with TSQL

Posted by Erland Sommarskog on 01/27/07 20:53

rsyring@gmail.com (rsyring@gmail.com) writes:
> I have a TSQL script that restores a production database to my local
> development machine. Every time I do a restore, I have to go into
> Enterprise Manager and set the recover model to simple to prevent
> Windows XP Backup from having shadow copy problems (that is a rant in
> and of itself). I would like to just add a statement at the bottom of
> the script to do this, but have yet to find the proper commands
> documented. It seems that the instructions that come with the server
> only mention enterprise manager.

ALTER DATABASE db SET RECOVERY SIMPLE


--
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

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