473,378 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to check Backup of SQL Server Database

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

Nov 17 '05 #1
4 1788
Lookup backupset system table that stored in msdb

<ik********@gmx.net> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
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

Nov 17 '05 #2
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

Nov 17 '05 #3
Thanks Uri,
Backupset has not information about status of backup.

Nov 17 '05 #4
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

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James | last post by:
HI, I'm looking for a script that will allow users/admins to have a one click backup solution for a MYSQL Database.. 'BACK DATABASE' button, click and its done... The a restore option, that...
5
by: TThai | last post by:
Hi, Appreciated anyone who can help us with our problem. Our backup job for ROUTT database has been failing for the last 4 days. It was working fine for almost a year now. The only thing...
2
by: nt | last post by:
I am having a problem with a regular backup of an SQL Server (MSDE 2000) database to a local drive. I initiate the backup once a week, by issuing the required T-SQL, via ADO. In this case, the...
6
by: tgru | last post by:
Hello, Can anyone tell me how to backup read-only databases? I want to backup the secondary databases in my log shipping pairs. Thanks, TGru *** Sent via Developersdex...
1
by: gcetti | last post by:
Can anyone recommend backup procedures for a SQL Server/MSDE product? We have upgraded our program from Access to SQL & before we could just tell our customers what .mdb files to include on their...
4
by: ikosianski | last post by:
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...
6
by: Eric Herber | last post by:
I've a question regarding db2 (V8.1) and database backups going to a storage manager like TSM for example. As I can see in the storage manager if I backup the complete database over the TSM API...
2
by: V_S_H_Satish | last post by:
Dear Friends I am working as oracle and ms sql dba from last 4 years. My company recently migrated to DB2 databases. So i am very much new to db2 database Can any one pls provide script to...
0
by: raj.raghavan | last post by:
Hi, I have a database were all the indexes are in a seperate filegroup a few large tables are in a seperate filegroup. We take backup at different times and I have backup of primary, two filegroup...
10
by: Konstantin Andreev | last post by:
Hello. Some time ago I asked in this conference, - How to use an ONLINE BACKUP to restore database onto another system? - but got no answers. Therefore I can conclude it is not possible. But......
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.