Query

Overview

The Query Component is an SSIS Data Flow Component providing the ability to retrieve data from a SQL database by defining data flow input columns as query keys. The Query component supports a variety of connection types as a source.

Demonstration

To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video

Parameters

General

The General page is used to define the component source database and statement.

Type

Select the connection type. This parameter has the options listed in the following table.

Indicates whether an empty line should be inserted at the end of each set of records returned by the query. The default is true.

Options

Description

True

Empty line will be inserted.

False

Empty line will not be inserted.

Columns

The Columns page is used to set up the query key columns and output columns.

Available Input Columns

List of available input columns from the upstream data flow component. Connect only the key column(s) to available lookup columns to use as query key columns.

Available Query Columns

List of available columns in the records being searched. Use the check boxes to include columns in output.

is a special query column. This allows you to provide a SQL statement from upstream to be used for the query. Map it to the input column containing the statement to populate the SQL statement the Query will use with content from the input row.

Lookup Column

Select lookup column to include in output.

Output Alias

Specify output column name. The default is the name of the lookup column.

What's New

1.6 SR-3

Fixed: Failed when input lookup parameter was NULL (Thank you, Don).

1.6 SR-1

New: Introduced component.

Ready to give it a try?

COZYROC SSIS+ Components Suite is free for testing in your development environment.