update table1 set col2 = T2.col2 from DataBaseName.dbo.table1 as T2 where table1.ID = T2.ID and table1.col2 is null