Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Copying Backups using XP_CMDSHELL

By kenkaufman,

This script is designed to backup the database, and copy it over the network to our backup server.  The requirement for this particular database is 7 days of data kept on the LAN.  The share on the backup server is mapped to the Y:\ drive.  The datename function is used over the datepart function for returning a string for ease of administration, particularly if non DBAs have to interpret the script.   The live version of this actually runs in a job, with the backup portion being separated from the copy, allowing us to back out based on results, of the backup.

Total article views: 339 | Views in the last 30 days: 1
 
Related Articles
FORUM

backup

backup

FORUM

backup

backup

FORUM

backup

backup

FORUM

Backup

Backup

FORUM

backup

backup

 
Contribute