ADO.NET Source in SSIS

The ADO.NET Source in SSIS (SQL Server Integration Services) is used to extract data from the Database using .Net provider. The ADO.NET Source in SSIS uses ADO.NET Connection Manager to connect with the Database.

Configuring ADO.NET Source in SSIS

Drag and drop the data flow task from the toolbox to control flow and change the name as Configuring ADO.NET Source in SSIS.

ADO.NET Source in SSIS 1

Double click on it will open the data flow tab. Now, Drag and drop ADO.NET Source from SSIS toolbox into the data flow region

ADO.NET Source in SSIS 2

Double click on SSIS ADO.NET source in the data flow region will open the connection manager settings. If you haven’t created ADO.NET Connection Manger before click on the New button and configure it.

ADO.NET Source in SSIS 3

In this example, we are selecting the already created ADO.NET Connection Manager. Please refer to ADO.NET Connection Manager in SSIS article

Data Access Mode: This property provides 2 options for us:

  • Table Or View: If you select this option then, It will display the list of available Tables and Views present in the Database, and our job is to select the required table or view.
  • SQL Command: If you select this option then, We have to write the SQL Command on our own.
ADO.NET Source in SSIS 4

SQL Command option provides the following options

  • SQL Command Text: If you are familiar with SQL Queries, then you can write it in the space provided by this option. We usually write queries in SQL Management Studio and then copy them in the SQL Command Text.
  • Build Query: If you click on this option, it will open a Query Designer to design the required query using the Graphical User interface. Please refer to Query Builder in the SSIS article.
  • Browse: This will allow us to select the SQL Query present in the file system.
ADO.NET Source in SSIS 5

For the time being, we are selecting the Table or View option here. If you chose this option, the Name of the table or the View option displays all the available Tables and Views present in the current connection manager.

ADO.NET Source in SSIS 6

We are selecting the DimProduct table from the list mentioned above

ADO.NET Source in SSIS 7

Click on the preview button to see the data present in the table

ADO.NET Source in SSIS 8

Click on the columns tab to verify the columns.

ADO.NET Source in SSIS 9

Click ok to finish configuring ADO.NET Source in SQL Server Integration Services.

ADO.NET Source in SSIS 10

NOTE: SSIS ADO.NET Source will convert the unmatched data types to the DT_NTEXT Data type.