Replaces the current schema job for comparing database object schemas with a new schema job definition.
replace schema job sc_job_name
set max_concurrent_comparisons = 100
[and set desc [{to|=}] description]
add comparison comparison_name
With source source_connection_name source_alias
target target_connection_name target_alias
[and target target2_connection_name target2_connection_name_alias]…
[include all tables]
[map tables
source_connection_name_alias.source_schema.source_object_name=
target_connection_name_alias.target_schema.target_object_name[=
target2_connection_name_alias.target2_schema.target2_object_name]…]
[and source_connection_name_alias.source_object2_schema.source_object2_name=
target_connection_name_alias.target_schema.target_object2_name[=
target2_connection_name_alias.target2_schema.target2_object2_name]…]
]
[exclude tables
source_schema.source_object_name
[and source_schema.source_object2_name]…]
replace schema job cust_sch_chk set max_concurrent_comparisons 3 add comparison chk1 with source prod1 s target back1 t map tables s.dbo.cust1 = t.dbo.cust1 go