Click here to Skip to main content
15,886,693 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

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+
thanks

really helpful

thanks again
 
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