How to check for integrity or violations in SQL Server database?

0

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.

    
asked by anonymous 28.07.2016 / 20:20

1 answer

0

Murilo, I believe that what you are looking for is the CheckTables methods, try this: link

    
30.07.2016 / 02:39