473,397 Members | 2,116 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,397 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

Sep 29 '05 #1
4 4153
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

Sep 29 '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

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

Sep 30 '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

Sep 30 '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...
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...
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...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.