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


Script/s to check backups of all accessible SQLServer - ???


Script/s to check backups of all accessible SQLServer - ???

Author
Message
newbie01.sqlserver
newbie01.sqlserver
SSC Rookie
SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)

Group: General Forum Members
Points: 32 Visits: 64
Hi,

I have a mix of SQL2000 and SQL2005 and at the moment, am checking the backups manually on each database, I mean really manually, right-click Report on backup ... Blush

Can someone please advise if there is any script out there somewhere in the universe that I can run to list all accessible SQLServer and then go thru each database and list the x database and transaction log backup, whether they are incremental, differential etc.

Would be good if it outputs it into some kind of report as well.

FYI, unfortunately, am not allowed to create a job for this so I need to run it as either a batch file maybe or as called from osql/isql. Am not the full-time DBA for the database, am just there to check the backup status.

Any advise will be much appreciated, thanks in advance.
Mr. Holio
Mr. Holio
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: 1173 Visits: 2559
If you don't mind using PS see if this helps:

http://www.mssqltips.com/tip.asp?tip=1798

to narrow down the jobs that do the backups you could do something like this:

if ($instance -eq "MYINSTANCE") {$jobs=$srv.JobServer.Jobs | where {$_.Name -like "DB_BACKUP"}}

__________________________
Allzu viel ist ungesund...
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