Search code examples
c#.nett-sqlsmodbcc

Execute DBCC CHECKCONSTRAINTS with Smo?


Is there an Smo method that executes TSQLs DBCC CHECKCONSTRAINTS on a database and returns the occuring messages as IEnumerable<String>?


Solution

  • Doesn't look like, if you have a look at the SMO programming guide for the database class, there isn't anything listed for check constraints:

    MSDN - SMO Reference Guide