Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to migrate a "XYZ" table form Database X to Database Y
while migrating this "XYZ" table i want to update particular column in the destination table
Posted
Comments
[no name] 24-Nov-14 4:17am    
question is not clear

1 solution

check this.

SQL
Use databaseX

insert into databaseY.dbo.XYZ(column1,column2,column3,Column4)
select column1,column2,column3,"your update value" 
from dbo.XYZ


or

SQL
insert into databaseY.dbo.XYZ(column1,column2,column3,Column4)
select column1,column2,column3,"your update value"
from databaseX.dbo.XYZ
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900