dbTalk Databases Forums  

Need Help - How would I accomplish this?

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


Discuss Need Help - How would I accomplish this? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rick Bond
 
Posts: n/a

Default Need Help - How would I accomplish this? - 09-28-2006 , 01:26 PM






Hi, I need help accomplishing a task and I'm not sure how to go about it
but I do know that I want to do it using DTS.

I have a text file, A, with a list of id's and I'm supposed to execute a
SELECT query on each id and send the data to another text file, B. I'm
not even sure where to start.

Any help would be much appreciated.




*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: Need Help - How would I accomplish this? - 09-28-2006 , 02:23 PM






One option:

Load the text file into a table (using bcp, bulkload, or DTS import/export
Execute a query using that table JOINed with other appropriate tables,
outputting the results of the query to a file.
remove the data from the table, leaving it ready for next time.

The use of a #Temp table may/may not be appropriate.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous


"Rick Bond" <nospam (AT) amen (DOT) com> wrote

Quote:
Hi, I need help accomplishing a task and I'm not sure how to go about it
but I do know that I want to do it using DTS.

I have a text file, A, with a list of id's and I'm supposed to execute a
SELECT query on each id and send the data to another text file, B. I'm
not even sure where to start.

Any help would be much appreciated.




*** Sent via Developersdex http://www.developersdex.com ***



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.