SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Are Your Database Backups Current and Available?


Are Your Database Backups Current and Available?

Author
Message
SQLRockstar
SQLRockstar
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3947 Visits: 538

This was designed to be distributed, so yes you would have to push this out to each of your servers.

It could be modified to run from a central location, as well as to generate only one email report each morning. But for something like this my preference is to have it reside on each server, and generate separate emails. I guess I prefer to have an email from each server in my inbox, so that i don't lose track of something during the day.

We have some reports that are centrally located, and some that are distributed. Perhaps for my next article I will include something that is done centrally instead.



----------------------
http://thomaslarock.com
SQLRockstar
SQLRockstar
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3947 Visits: 538

In SS2K5 they have truned it off by default. You can turn it back on rather easily, and lock it down to specific users as well.

I know, it is not the preferred method, and I am looking to figure out a way to do this using SQLCMD in the future. If I get the time to put it all together, I'll put together another article as well.



----------------------
http://thomaslarock.com
Kathi Kellenberger
Kathi Kellenberger
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1163 Visits: 342

Voxinforma:

I use a script to automatically find the lastest full backup, copy the file to a different server and restore the database. I am using LiteSpeed, so I would need to create another script for native restores to post it for those interested.

Great job, Tom!!!



Aunt Kathi
Linchpin People Teammate
SQL Server MVP
Author of Expert T-SQL Window Functions
SQLRockstar
SQLRockstar
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3947 Visits: 538

Thanks Kathi!

As for your script, why not pass a parameter (say, @use_native = 'Y'), and have the code issue a native backup command, otherwise you would call the litespeed xp proc.

We use litespeed here as well, but we often have a need to ship a native backup to a vendor, so we ended up adding a parameter to our procs to handle the different dumps.



----------------------
http://thomaslarock.com
Kathi Kellenberger
Kathi Kellenberger
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1163 Visits: 342

That's a good idea. I'll think about doing that. Thought, I might want to write an article about how to get started writing your own scripts and include it as part of the article.



Aunt Kathi
Linchpin People Teammate
SQL Server MVP
Author of Expert T-SQL Window Functions
Ali Asghar Sharifi
Ali Asghar Sharifi
SSC Veteran
SSC Veteran (292 reputation)SSC Veteran (292 reputation)SSC Veteran (292 reputation)SSC Veteran (292 reputation)SSC Veteran (292 reputation)SSC Veteran (292 reputation)SSC Veteran (292 reputation)SSC Veteran (292 reputation)

Group: General Forum Members
Points: 292 Visits: 53

Dear Thomas you'r method is very technical and beutifull.I am waiting to hear further subjects from you


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search