PC Review


Reply
Thread Tools Rate Thread

How to check Backup of SQL Server Database

 
 
ikosianski@gmx.net
Guest
Posts: n/a
 
      29th Sep 2005
Hallo,

MSDB.dbo.BackupSet logs all backups
is it possible find Status of Backup (Success / Failed)?
Table "BackupSet" hasn't any information about it.

I need log and notify all backups with status
(It must be a windows service (c#)

Thanks

 
Reply With Quote
 
 
 
 
Uri Dimant
Guest
Posts: n/a
 
      29th Sep 2005
Lookup backupset system table that stored in msdb



<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hallo,
>
> MSDB.dbo.BackupSet logs all backups
> is it possible find Status of Backup (Success / Failed)?
> Table "BackupSet" hasn't any information about it.
>
> I need log and notify all backups with status
> (It must be a windows service (c#)
>
> Thanks
>



 
Reply With Quote
 
Simon Hayes
Guest
Posts: n/a
 
      29th Sep 2005
As far as I know, the backupset table only has successful backups (if
the backup wasn't successful, there wouldn't be a backup set). But I
guess what you should be looking at is the success/failure of the
scheduled job that backs up the database - you can check the
Job.LastRunOutcome property using DMO (SQL2000, COM) or SQL 2005 (SMO,
..NET). Alternatively, you could have the job raise an alert and/or run
a job if it fails, rather than polling it yourself.

If a backup fails, it should be logged in the SQL Server error log and
the Windows event log, so you could check either of them. The DMO/SMO
ReadErrorLog() method can be used for the SQL Server log.

Finally, there are plenty of third party monitoring tools available for
MSSQL, so if you need something only for your own organization, it may
be worth looking at the cost of buying versus the cost of developing
and maintaining your own solution.

Simon

 
Reply With Quote
 
ikosianski@gmx.net
Guest
Posts: n/a
 
      30th Sep 2005
Thanks Uri,
Backupset has not information about status of backup.

 
Reply With Quote
 
ikosianski@gmx.net
Guest
Posts: n/a
 
      30th Sep 2005
Thanks, Simon,
during backup I click to break it, but the new line is coming into
backupset.
EventLog has the information about failed backup, but I cannot identify
the special backup with his status
I will see DMO

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup-Restore SQL server database using C# Hans Microsoft C# .NET 2 8th Apr 2010 01:42 PM
sql server 2005 database backup? =?iso-8859-1?q?Recep_TARAK=C7I?= Microsoft VB .NET 2 9th Jan 2006 11:42 AM
Backup SQL Server Database Ivan Microsoft VB .NET 2 2nd Dec 2005 02:58 PM
ADP to backup/restore SQL server database diznuts@gmail.com Microsoft Access ADP SQL Server 1 31st Oct 2005 10:31 PM
Backup MS SQL server database to sql script Greg Microsoft Dot NET Framework 1 22nd Sep 2005 03:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:42 PM.