dbTalk Databases Forums  

Insert Results of a Query

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Insert Results of a Query in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RC-
 
Posts: n/a

Default Insert Results of a Query - 12-19-2005 , 12:10 PM






How can I insert the results of a query into another table?

TIA
RC-



Reply With Quote
  #2  
Old   
Chris Leiter
 
Posts: n/a

Default Re: Insert Results of a Query - 12-19-2005 , 09:16 PM






See Books Online for the topic

SELECT INTO

Chris

"RC-" <r_candee (AT) hotmail (DOT) com> wrote

Quote:
How can I insert the results of a query into another table?

TIA
RC-




Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Insert Results of a Query - 12-20-2005 , 06:00 AM



This is a DTS group, but it would be a watse of effort doing this in DTS.


Try using pure T-SQL-

INSERT Results (C1, C2)
SELECT C1, C2
FROM Table
WHERE C1 = 'X'



"RC-" <r_candee (AT) hotmail (DOT) com> wrote

Quote:
How can I insert the results of a query into another table?

TIA
RC-




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.