TheBugSlayer
Programmer
Hello all.
I have a situation where the powers that be are using Red Gate software to replicate a production database onto a report server. The Red Gate app backs up the live database creating the files in one location, then restores while moving the files from that location to the report server. The problem is there is not enough space now on the report server to accommodate the log file. I know other ways of creating a report server but I was not part of the decision making process/team.
Now I believe this being a report server, it could as well be a read-only database. We don't need the transaction log here. I know you can reattach a DB without the transaction log to create a new one, but we cannot afford to detach the production database.
My question is, how do I with the current configuration restore the database without the transaction log, or create a new one during the restore? In the Red Gate error log I see the following command:
Can I modify that command to exclude or recreate the log file?
Thank you very much for your prompt answers.
MCP SQL Server 2000, MCTS SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)
I have a situation where the powers that be are using Red Gate software to replicate a production database onto a report server. The Red Gate app backs up the live database creating the files in one location, then restores while moving the files from that location to the report server. The problem is there is not enough space now on the report server to accommodate the log file. I know other ways of creating a report server but I was not part of the decision making process/team.
Now I believe this being a report server, it could as well be a read-only database. We don't need the transaction log here. I know you can reattach a DB without the transaction log to create a new one, but we cannot afford to detach the production database.
My question is, how do I with the current configuration restore the database without the transaction log, or create a new one during the restore? In the Red Gate error log I see the following command:
Code:
RESTORE DATABASE [MyDBName] FROM DISK = 'B:\MyDB Backup\Dailybackup\*.sqb' SOURCE = 'Windopath' LATEST_FULL WITH MAILTO_ONERRORONLY = 'support@auroradx.com', RECOVERY, DISCONNECT_EXISTING, MOVE DATAFILES TO 'E:\MyDBName\databasefiles', [b][COLOR=red]MOVE LOGFILES TO 'E:\Windopath\logfiles'[/color][/b], REPLACE, ORPHAN_CHECK, CHECKDB = 'NO_INFOMSGS, ALL_ERRORMSGS'
Can I modify that command to exclude or recreate the log file?
Thank you very much for your prompt answers.
MCP SQL Server 2000, MCTS SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)