if exists (select * from sys.syscolumns where name = 'Container' and id = object_id(N'dbo.InventoryADDomain'))
begin
    exec ('update adu set Container = ad.Container from dbo.InventoryADUser adu inner join dbo.InventoryADDomain ad on ad.ID=adu.ADDomainID;');
    alter table dbo.InventoryADDomain drop column Container;
end;