|
We support MS SQL Server 2005 Express. There is one production database on it. Our customer needs a copy of that database under a different name for testing purposes. There is no Copy Database task in Express and some people suggest BACKUP/RESTORE. Can anyone provide a cookbook recipe for doing that? Should we use COPY ONLY or what else to keep in mind so that the original database stays up and happy?
(comments are locked)
|
|
From Books Online (the help file)
http://msdn.microsoft.com/en-us/library/ms186858(SQL.90).aspx HTH, Stu
(comments are locked)
|
|
You are right to be considering COPY ONLY if the production database is set to Full Recovery mode and log backups are occuring frequently. As MSDN/BOL states
The syntax for this is
If taking a backup isn't going to affect the backup strategy in place, then you can follow the steps that Stuart Ainsworth gave. The MSSQL server is being backed up by running this command every night (via Windows Scheduled Tasks): expressmaint -S (local) -D ALL_USER -T DB -R c:reports -RU WEEKS -RV 1 -B D:SQL -BU DAYS -BV 7 -V > D:sqllog.log Would it affect this backup strategy?
Oct 23 '09 at 05:08 PM
Henno
Henno: do you know what recovery mode the databases are in?
Oct 26 '09 at 02:29 PM
Kev Riley ♦♦
(comments are locked)
|

