I have a C# windows Forms application and when the start-up Form loads, i want to check the last time a backup was performed on the database the application connects to.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you could create a store procedure that does the work for you. then you can execute it within the form’s
OnLoadevent or where ever it fits for your need.Have a look at the below for getting the T-SQL that does the trick
http://www.mssqltips.com/sqlservertip/1601/script-to-retrieve-sql-server-database-backup-history-and-no-backups/