Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

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

Automatic Backups

By Rodrigo Acosta,

Creates the backup devices where sql server is installed, creates an error message above 50001, an alert, and an adittional job in case the scripts fails. In the first time backups all databases and then backups the logs until two days past from the last full backup. Then backups the databases again and so on.

You can create a job to run the script by EXEC master..xp_cmdshell 'osql -Usa -P -ic:\....\script.sql' The comments are in Spanish, because I'm from Argentina. I didn't wanted to translate it, sorry.

Total article views: 1137 | Views in the last 30 days: 9
 
Related Articles
FORUM

Failing backup can't create backup

single database backup can't create file

FORUM

hoe to stop creating a daily database backup file

stop creating a daily database backup file

FORUM

Daily Backup Job

Creating daily backup job

FORUM

backup

backup

FORUM

Creating a Backup job!!

Backup Job

 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones