Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

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


Report this thread to moderator Post Follow-up to this message
Old Post
ikosianski@gmx.net
09-29-05 12:24 PM


Re: How to check Backup of SQL Server Database
Lookup backupset system table that stored in msdb



<ikosianski@gmx.net> wrote in message
news:1127985458.676707.120340@g43g2000cwa.googlegroups.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
>



Report this thread to moderator Post Follow-up to this message
Old Post
Uri Dimant
09-29-05 12:24 PM


Re: How to check Backup of SQL Server Database
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


Report this thread to moderator Post Follow-up to this message
Old Post
Simon Hayes
09-29-05 12:24 PM


Re: How to check Backup of SQL Server Database
Thanks Uri,
Backupset has not information about status of backup.


Report this thread to moderator Post Follow-up to this message
Old Post
ikosianski@gmx.net
09-30-05 04:23 PM


Re: How to check Backup of SQL Server Database
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


Report this thread to moderator Post Follow-up to this message
Old Post
ikosianski@gmx.net
09-30-05 04:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 01:47 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006