Click here to Skip to main content
Sign Up to vote bad
good
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 6 Nov '12 - 8:13
hardi24269


2 solutions

try this
 
insert into Database1.dbo.Table1
select (AllCOl except identity Col)  from Database2.dbo.Table2
  Permalink  
Comments
hardi24 - 6 Nov '12 - 18:16
thanks Really helpful
damodara naidu betha - 7 Nov '12 - 0:21
5+
thanks
 
really helpful
 
thanks again
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 206
1 Richard MacCutchan 145
2 Tadit Dash 140
3 Santhosh G_ 125
4 Volynsky Alex 105
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,957
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,155


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid