Click here to Skip to main content
15,945,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello friends
please i need your help for my project

i want to insert values into a field from one table into another table if some values of the other fields in the both table are equal


thanks
Posted

thanks

really helpful

thanks again
 
Share this answer
 
try this

SQL
insert into Database1.dbo.Table1
select (AllCOl except identity Col)  from Database2.dbo.Table2
 
Share this answer
 
Comments
hardi24 6-Nov-12 18:16pm    
thanks Really helpful
damodara naidu betha 7-Nov-12 0:21am    
5+

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