dbTalk Databases Forums  

SSIS - SELECTING rows prior to sending to Data Flow Destination

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


Discuss SSIS - SELECTING rows prior to sending to Data Flow Destination in the microsoft.public.sqlserver.dts forum.



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

Default SSIS - SELECTING rows prior to sending to Data Flow Destination - 08-21-2006 , 07:18 AM






Just getting the hang of this SSIS stuff. I have an operational Control Flow
and Data Flow (Input from Source, Data Conversion, Output to Destination).
All works fine.

However, I would like to limit the Output to specific rows based on criteria
(like a SELECT and send the result set to the Output). There must be a way to
do this but can't seem to find the correct Data Flow Transformation (maybe
I'm looking for the wrong tool).

Any suggestions?
--
Michael Hockstein

Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: SSIS - SELECTING rows prior to sending to Data Flow Destination - 08-21-2006 , 07:23 AM






Depending on your source, you could Edit the connection manager, then change
Daa Access mode to SQL command, then enter the SELECT statement. Or you could
use conditional split, write one output and discard the other. This second
method is clunky and not suitable. First one is better.

Charles Kangai, MCT, MCDBA

"michael" wrote:

Quote:
Just getting the hang of this SSIS stuff. I have an operational Control Flow
and Data Flow (Input from Source, Data Conversion, Output to Destination).
All works fine.

However, I would like to limit the Output to specific rows based on criteria
(like a SELECT and send the result set to the Output). There must be a way to
do this but can't seem to find the correct Data Flow Transformation (maybe
I'm looking for the wrong tool).

Any suggestions?
--
Michael Hockstein

Reply With Quote
  #3  
Old   
michael
 
Posts: n/a

Default RE: SSIS - SELECTING rows prior to sending to Data Flow Destinatio - 08-21-2006 , 11:46 AM



I see. Adding a SQL command on the Source side would be great, except that
I'm using a flat file as the source. Guess that I'll have to do the work
after the Output to the destination.

--
Michael Hockstein


"Charles Kangai" wrote:

Quote:
Depending on your source, you could Edit the connection manager, then change
Daa Access mode to SQL command, then enter the SELECT statement. Or you could
use conditional split, write one output and discard the other. This second
method is clunky and not suitable. First one is better.

Charles Kangai, MCT, MCDBA

"michael" wrote:

Just getting the hang of this SSIS stuff. I have an operational Control Flow
and Data Flow (Input from Source, Data Conversion, Output to Destination).
All works fine.

However, I would like to limit the Output to specific rows based on criteria
(like a SELECT and send the result set to the Output). There must be a way to
do this but can't seem to find the correct Data Flow Transformation (maybe
I'm looking for the wrong tool).

Any suggestions?
--
Michael Hockstein

Reply With Quote
  #4  
Old   
Charles Wang[MSFT]
 
Posts: n/a

Default RE: SSIS - SELECTING rows prior to sending to Data Flow Destinatio - 08-22-2006 , 03:59 AM



Hi Michael,
If you are using a flat file as data source, you need to use script
component or script task programmatically for selecting rows.

You may refer to the usage of script component:
Parsing Non-Standard Text File Formats with the Script Component
http://msdn2.microsoft.com/en-us/library/ms345160.aspx
ScriptBuffer Class
http://msdn2.microsoft.com/en-us/lib...ts.pipeline.sc
riptbuffer.aspx

Sincerely yours,
Charles Wang
Microsoft Online Community Support

================================================== ====
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====


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.