Client Automation - All Versions.
drop table conttmp_ca_company_type
create table conttmp_ca_company_type (id int NOT NULL,inactive int,name nvarchar (100) COLLATE Latin1_General_CI_AS,creation_user nvarchar (64) COLLATE Latin1_General_CI_AS,creation_date int,last_update_user nvarchar (64) COLLATE Latin1_General_CI_AS,last_update_date int,description nvarchar (255) COLLATE Latin1_General_CI_AS,tenant binary (16))
alter table conttmp_ca_company_type with nocheck add constraint conttmp_ca_company_type_pk primary key clustered (id)
update ca_company_type set inactive=tmp.inactive,name=tmp.name,creation_user=tmp.creation_user,creation_date=tmp.creation_date,last_update_user=tmp.last_update_user,last_update_date=tmp.last_update_date,description=tmp.description from conttmp_ca_company_type as tmp where ca_company_type.id=tmp.id
insert into ca_company_type (id,inactive,name,creation_user,creation_date,last_update_user,last_update_date,description) select id,inactive,name,creation_user,creation_date,last_update_user,last_update_date,description from conttmp_ca_company_type as tmp where not exists (select id from ca_company_type as data where data.id=tmp.id )