Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 database backup

Author  Topic 

raul11
Starting Member

48 Posts

Posted - 2009-09-11 : 13:26:21
can anyone help e with a script to check backup of database

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-09-11 : 14:29:21
http://blog.ola.hallengren.com/blog/_archives/2008/1/1/3440068.html


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-09-11 : 16:22:48
I prefer mine: http://weblogs.sqlteam.com/tarad/archive/2009/09/08/Backup-SQL-Server-2005-and-2008-Databases.aspx



But do you want to verify that a backup is good or just use a custom script to perform backups? I'm not clear on your wording, which I think is about the same wording I received in an email earlier.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

raul11
Starting Member

48 Posts

Posted - 2009-09-12 : 12:44:52
quote:
Originally posted by tkizer

I prefer mine: http://weblogs.sqlteam.com/tarad/archive/2009/09/08/Backup-SQL-Server-2005-and-2008-Databases.aspx



But do you want to verify that a backup is good or just use a custom script to perform backups? I'm not clear on your wording, which I think is about the same wording I received in an email earlier.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."

Go to Top of Page

raul11
Starting Member

48 Posts

Posted - 2009-09-12 : 12:46:40

Hi,

I looking for a custom script that would check backups.

quote:
Originally posted by tkizer

I prefer mine: http://weblogs.sqlteam.com/tarad/archive/2009/09/08/Backup-SQL-Server-2005-and-2008-Databases.aspx



But do you want to verify that a backup is good or just use a custom script to perform backups? I'm not clear on your wording, which I think is about the same wording I received in an email earlier.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."

Go to Top of Page

shah429
Yak Posting Veteran

52 Posts

Posted - 2009-09-12 : 16:46:48
What do you mean check backups? Will you please clarify?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-09-13 : 23:28:41
A backup is not considered good until it has been copied to another location (off the local server), restored to a remote server, and then DBCC CHECKDB comes back with no errors. This is documented in Microsoft's article that describes how to properly check backups.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

raul11
Starting Member

48 Posts

Posted - 2009-09-14 : 10:13:58

Hi,
What I'm looking for is a script whch would help me checkup the status of backup whether(successful or ortherwise).
Hope this clarifies it.

Regards

http://www.sqlteam.com/forums/
quote:
Originally posted by shah429

What do you mean check backups? Will you please clarify?

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-09-14 : 10:53:25
If you just want to verify if a backup was successful, then set it up as a job and then alert on the job success/failure.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -