Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

beginner question on DTS

Status
Not open for further replies.

beefeater267

Programmer
Apr 6, 2005
79
Hey,

I a new to DTS.... I understand the basics of many of the tasks.. however, can anyone give me guidance on how to do this?

I have records in a table that i would like to put into a text file. I know how to tranform EVERY record .... but, how can I put a condition on the record?

EX... Only transfer records where balance > 5000?

thanks
 
Hi,

You can specify a SQL Query in the Source of the transformation task. Just select the "SQL Query" radio button on the source tab instead of selecting the "Table/View". Then type the sql query in the window

For example:

SELECT * FROM [YOURTABLE] WHERE BALANCE > 5000

This will then only write out records meeting the condition

Thanks
MattBeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top