anchor.diff:    ALTER TABLE <%= object_type.sql.qualified_table_name %> DROP CONSTRAINT [<%= foreign_key.foreign_key_name %>]
   GO
   ALTER TABLE <%= object_type.sql.qualified_table_name %>
  -  WITH CHECK ADD CONSTRAINT [<%= foreign_key.foreign_key_name %>] FOREIGN KEY (<%= foreign_key.attribute_names.collect{|a| q(object_type.attribute_by_name(a).sql.column_name)}.join(', ') %>)
  +  WITH NOCHECK ADD CONSTRAINT [<%= foreign_key.foreign_key_name %>] FOREIGN KEY (<%= foreign_key.attribute_names.collect{|a| q(object_type.attribute_by_name(a).sql.column_name)}.join(', ') %>)
     REFERENCES <%= foreign_key.referenced_object_type.sql.qualified_table_name %> (<%= foreign_key.referenced_attribute_names.collect{|a| q(foreign_key.referenced_object_type.attribute_by_name(a).sql.column_name)}.join(', ')  %>)
   <% if foreign_key.on_update != :no_action %>  ON UPDATE <%= Domgen::Sql::ForeignKey::ACTION_MAP[foreign_key.on_update] %><% end %>
   <% if foreign_key.on_delete != :no_action %>  ON DELETE <%= Domgen::Sql::ForeignKey::ACTION_MAP[foreign_key.on_delete] %><% end %>
  
positive.code:   ALTER TABLE <%= object_type.sql.qualified_table_name %> DROP CONSTRAINT <%= constraint.constraint_name %>
  GO
  ALTER TABLE <%= object_type.sql.qualified_table_name %>
    WITH <%= constraint.invariant? ? '' : 'NO' %>CHECK ADD CONSTRAINT <%= constraint.constraint_name %> CHECK ( <%= s(constraint.sql) %> )
  GO
  <% if constraint.invariant? %>
  ALTER TABLE <%= object_type.sql.qualified_table_name %> CHECK CONSTRAINT [<%= constraint.constraint_name %>]
  <% end %>
  GO
  <% constraint.tags.each_pair do |name, value| %>
  EXEC sys.sp_addextendedproperty
  
negative.code: GO
  <% end %>
  ALTER TABLE <%= object_type.sql.qualified_table_name %>
    WITH NOCHECK ADD CONSTRAINT
    <%= constraint.constraint_name %>
    CHECK (<%= q(data_module.sql.schema) %>.<%= s(object_type.name) %>_<%= s(constraint.name) %>(<%= constraint.parameters.collect{|parameter_name| a = object_type.attribute_by_name(parameter_name); "  #{a.sql.column_name}"}.join(",") %>) = 1)
  GO
  ALTER TABLE <%= object_type.sql.qualified_table_name %> CHECK CONSTRAINT [<%= constraint.constraint_name %>]
  <% constraint.tags.each_pair do |name, value| %>
  EXEC sys.sp_addextendedproperty
    @name = N'<%= sql_extended_property_key(name) %>',
  