sql server - Update records from one table to another -


at job have 2 systems handle employee details name, department , associate number. have been asked create stored procedure grab table of users 1 system , update table of users in other system.

from 1 system copying table database database of other system , changing column names match up.

i thought easy these tables not have same columns, 1 has 5 columns , other has 15+. started looking doing foreach loop through 1 of tables , update other examples found used id column enumerate through table neither of these tables have. 1 table has no pk , other has pk of type varchar stores numbers.

i direction on way of task or direction on how can add column copying table other system , auto incrementing give me column work with.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -