I created an application to run in the background to back up my SQL Server database using the Backup class of Microsoft.SqlServer.Management.Smo
.
I would like to add to this backup tool something that can check the integrity of the database or if it has an error. I know there is a possibility to do it via SQL script and have it executed, but I wish to do it via code, perhaps using Smo.