anchor.diff:  
     IF @PrintProgress = 1 PRINT 'Performing Constraint Checks'
   <% repository.data_modules.select{|data_module| data_module.sql?}.each do |data_module| -%>
  +  IF @PrintProgress = 1 PRINT 'Checking constraints in <%= data_module.sql.quoted_schema %>'
     INSERT INTO @ConstraintViolations(SchemaName, TableName, ConstraintName, ViewSql) EXEC <%= data_module.sql.quoted_schema %>.[spCheckConstraints] @ShowErrors = @ShowErrors, @PrintProgress = @PrintProgress
   <% end -%>
  +  IF @PrintProgress = 1 PRINT 'Constraint Checks Completed'
   
     INSERT INTO <%= data_issue_entity.sql.qualified_table_name %>([Category], [Description], [ViewSql])
       SELECT 'Constraints', COALESCE(SchemaName,'') + '.' + COALESCE(TableName,'') + '.' + COALESCE(ConstraintName,''), ViewSql FROM @ConstraintViolations
  
positive.code: 
    IF @PrintProgress = 1 PRINT 'Performing Corruption Checks'
    EXEC <%= analysis_data_module.sql.quoted_schema %>.[spCheckCorruptions] @PrintProgress = @PrintProgress
  
    DECLARE @ConstraintViolations TABLE (
      SchemaName VARCHAR(500),
  
negative.code:   -- Best guess and not necessarily right, safest to not run this proc in a session with anything else
    IF @ReadUncommitted = 1 SET TRANSACTION ISOLATION LEVEL READ COMMITTED
  
    IF @PrintProgress = 1 PRINT 'spPerformChecks Completed'
  
    RETURN @Results
  