How can we help you today? How can we help you today?
Eddie D
Thank you for your post into the forum. There is no single click solution to what you are seeking. You can script out a backup and restore tasks using the Backup Wizard, Restore Wizard and Schedule Backup Job Wizard. When you reach the final step, before clicking the finish button, there is a summary of the actions to be taken. Behind the summary tab, you will find the 'Script' tab. If you select the script tab, you will find the job synatx for both the Extended Stored Procedure and Command Line Interface. Alternatively, modify the example scripts below to suit your needs (The examples are for the Stored Procedure): -- Backup AdventureWorks using Compression Level 2, encrypted and erasefiles set to 30 days DECLARE @errorcode INT DECLARE @sqlerrorcode INT EXEC master.dbo.sqlbackup '-SQL "BACKUP DATABASE [AdventureWorks] TO DISK = ''D:\Backup\<AUTO>.sqb'' WITH ERASEFILES = 30, COMPRESSION = 2, THREADPRIORITY = 6, KEYSIZE = 256, PASSWORD = ''p@ssw0rd'', VERIFY " ' IF (@errorcode >= 500) OR (@sqlerrorcode <> 0) BEGIN RAISERROR ('SQL Backup failed with exit code: %d SQL error code: %d', 16, 1, @errorcode, @sqlerrorcode) END --RESTORE DATABASE Script DECLARE @errorcode INT DECLARE @sqlerrorcode INT EXECUTE master..sqlbackup N'-SQL "RESTORE DATABASE [<database_name] FROM DISK = ''Path to the backup file.sqb'' WITH RECOVERY, REPLACE"' IF (@errorcode >= 500) OR (@sqlerrorcode <> 0) BEGIN RAISERROR ('SQL Backup failed with exit code: %d SQL error code: %d', 16, 1, @errorcode, @sqlerrorcode) END To automate a backup task, simply use the Schedule Backup Job which will create the job for you. Alternatively create a new SQL Server Agent Job and modify the example syntax to meet your needs. If you are looking to automate SQL Server Express, you will need to use the Command Line Interface(CLI) and create batch files containing the CLI syntax. Then use the Windows scheduler to call at the batch file. SQL Backup does not have a schedule restore job wizard or similar. To automate restore task you will need to create new SQL Server Agent Job and modify the example restore syntax to meet your needs. Many Thanks Eddie / comments
Thank you for your post into the forum. There is no single click solution to what you are seeking. You can script out a backup and restore tasks using the Backup Wizard, Restore Wizard and Schedule...
0 votes
Thank you for your post into the forum. The machine running SQL Data Compare, will create temporarily files by default in the Windows Temp directory. I would expect that these temp files would get overwritten, when you refreshed the compare result. Maybe the temp files are not getting overwritten and you are running out of space in the Windows Temp file directory. I will need to test for this and update you. A support call has been created for you and the call reference number is F0032604 You can if you wish, set a system variable called RGTEMP and this action will force SQL Data Compare to use this new system variable. Useful if the machine running SQL Data Compare has 2 or more local disks and the local C: drive is short of disk space. To set the system variable follow the steps below: 1. Right MyComputer and select Properties. 2. Select the Advanced Tab. 3. Click on the Environment Variables button. 4. In the System variables section, click on the new button. 5. For the 'Variable name' = RGTEMP 6. Type the path required for the New System Variable, for example [image] \RGTEMP. 7. Click OK to close New System Variable Dialog Box. 8. Click OK to close the Environmemt Variables Dialog Box. 9. Click OK to close the System Properties. You may need to re-boot the machine for the system variable to take affect. 10. When you next start up SQL Data Compare (or any other Red Gate SQL Tools products, for example SQL Compare, SQL Doc or SQL Dependency Tracker) the temp files created will now be generated in the folder specified for the system variable RGTEMP. Many Thanks Eddie / comments
Thank you for your post into the forum. The machine running SQL Data Compare, will create temporarily files by default in the Windows Temp directory. I would expect that these temp files would get ...
0 votes
Thank you for your post into the forum. Unfortunately SQL Server will prevent you from restoring a backup of a SQL 2008 database to a SQL 2005 database. SQL Server itself performs the actual backup or restore operation. When using third-party backup solution like SQL Backup, SQL Server performs the back or restore using a virtual device. For a backup task, SQL Server generates the backup data and informs SQL Backup where to find the data. SQL Backup will then compress and encrypt (if configured) before writing the compressed backup data to disk. The restore the opposite occurs SQL Backup reads the backup file from disk, if the backup file is encrypted, that data is decrypted and uncompressed. SQL Backup informs SQL Server where to find the backup data for restore. If you have a need to restore a SQL 2008 backup file to a SQL 2005 database, please take a look at our comparison tools SQL Compare and SQL Data Compare Professional Editions. <http://www.red-gate.com/products/SQL_Compare/index.htm&gt; <http://www.red-gate.com/products/SQL_Data_Compare/index.htm&gt; You can compare the live SQL 2008 database with the live SQL 2005 database or compare the SQL 2008 backup file with a live SQL2005 database. Using SQL Compare you can synchronize to database schema from the SQL 2008 database to the SQL 2005, providing that the schema is not using the new features available in SQL 2008. Next use SQL Data Compare to synchronize the data from the SQL 2008 database to the SQL 2005. I hope the above answers your question. Many Thanks Eddie / comments
Thank you for your post into the forum. Unfortunately SQL Server will prevent you from restoring a backup of a SQL 2008 database to a SQL 2005 database. SQL Server itself performs the actual backup...
0 votes