Wednesday, August 12, 2015

Sources in SSIS Dataflow

ADO.NET Source in SSIS 2014

In SQL Server Integration Services, ADO.NET Source is used to extract data from the Database using .Net provider. ADO.NET Source uses ADO.NET Connection Manger to connect with the Database.

Configuring ADO.NET Source in SSIS

In this article we will show you, How to configure ADO.NET Source in the SQL Server Integration Services to extract data from the SQL Server Database.
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 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 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 ADO.NET Connection Manger in SSIS article to understand, How to configure the ADO.NET Connection Manager
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 following options
  • SQL Command Text: If you are familiar with SQL Queries then you can simply write it in the empty space provided by this option. In real-time 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 Query Designer to design the required query using Graphical User interface. Please refer SSIS Query Builder article to understand, How to design SQL query using Query Designer.
  • 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 selected this option then Name of the table or the View option will display 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 above mentioned list
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 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: ADO.NET Source will convert the unmatched data types to the DT_NTEXT Data type.
Thank You for Visiting Our Blog



Excel Source in SSIS 2014

In SQL Server Integration Services, EXCEL Source is used to extract data from the Excel worksheet. Excel Source uses Excel Connection Manger to connect with the Excel files.

Configuring EXCEL Source in SSIS 2014

In this article we will show you, How to configure EXCEL Source in the SQL Server Integration Services to extract data from the Excel Worksheets.
Drag and drop the data flow task from the toolbox to control flow and change the name as Configuring EXCEL Source in SSIS 2014.
EXCEL Source in SSIS 1
Double click on it will open data flow tab. Now, Drag and drop Excel Source from SSIS toolbox into the data flow region
EXCEL Source in SSIS 2
Double click on Excel source in the data flow region will open the connection manager settings. If you haven’t created Excel Connection Manger before click on the New button and configure it.
EXCEL Source in SSIS 3
In this example we are selecting the already created Excel Connection Manager. Please refer EXCEL Connection Manger in SSIS article to understand, How to configure the Excel Connection Manager
EXCEL Source in SSIS 4
Data Access Mode: This property provides four options for us:
  • Table Or View: If you select this option then, It will display the list of available Tables present in the Excel Worksheet and our job is to select the required tables from them.
  • Table name Or View name variable: If you select this option then, We have to provide the variable name which holds the Table name or Views name.
  • SQL Command: If you select this option then, We have to write the SQL Command on our own.
  • SQL Command from variable: If you select this option then, We have to provide the variable name which holds the SQL Command.
EXCEL Source in SSIS 5
SQL Command option provides following options
  • SQL Command Text: If you are familiar with SQL Queries then you can simply write it in the empty space provided by this option.
  • Build Query: If you click on this option, it will open Query Designer to design the required query using Graphical User interface. Please refer SSIS Query Builder article to understand, How to design SQL query using Query Designer.
  • Browse: This will allow us to select the SQL Query present in the file system.
  • Parse Query: This option will check whether the query is successfully parsed or not
EXCEL Source in SSIS 11
For the time being we are selecting the Table or View option here. If you selected this option then Name of the table or the View option will display all the available Tables and Views present in the current connection manager.
EXCEL Source in SSIS 6
From the above screenshot you can observe that we selected the PRODUCTS table from the Excel Worksheet. Click on the preview button to see the data present in the table
EXCEL Source in SSIS 7
Click on columns tab to verify the columns. We can also remove the unwanted columns by uncheck them.
EXCEL Source in SSIS 8
Click ok to finish configuring EXCEL Source in SQL Server Integration Services.
EXCEL Source in SSIS 10
To show the data inside the Excel Source, we are just adding the Union All and then enabled the Data Viewer.
Excel Source in SSIS 12
Please execute the package to see the data inside the configured Excel Source
Excel Source in SSIS 13
Thank You for Visiting Our Blog

OLE DB Source in SSIS 2014

In SQL Server Integration Services, OLE DB Source is used to extract data from wide variety of databases which supports OLE DB Connections. OLE DB Source uses OLE DB Connection Manger to connect with the Database Tables or Views.

Configuring OLE DB Source in SSIS 2014

In this article we will show you, How to configure OLE DB Source in the SQL Server Integration Services to extract data from SQL Server Database.
Drag and drop the data flow task from the toolbox to control flow and change the name as Configuring OLE DB Source in SSIS 2014.
OLE DB Source in SSIS 1
Double click on it will open data flow tab. Now, Drag and drop OLE DB Source from SSIS toolbox into the data flow region
OLE DB Source in SSIS 2
Double click on OLE DB source in the data flow region will open the connection manager settings. If you haven’t created OLE DB Connection Manger before click on the New button and configure it.
OLE DB Source in SSIS 3
In this example we are selecting the already created Connection Manager. Please refer OLE DB Connection Manger in SSIS article to understand, How to configure the OLE DB Connection Manager
OLE DB Source in SSIS 4
Data Access Mode: This property provides four options for us:
  • Table Or View: If you select this option then, It will display the list of available Tables present in the Database and our job is to select the required tables from them.
  • Table name Or View name variable: If you select this option then, We have to provide the variable name which holds the Table name or Views name.
  • SQL Command: If you select this option then, We have to write the SQL Command on our own.
  • SQL Command from variable: If you select this option then, We have to provide the variable name which holds the SQL Command.
OLE DB Source in SSIS 5
SQL Command option provides following options
  • SQL Command Text: If you are familiar with SQL Queries then you can simply write it in the empty space provided by this option.
  • Build Query: If you click on this option, it will open Query Designer to design the required query using Graphical User interface. Please refer SSIS Query Builder article to understand, How to design SQL query using Query Designer.
  • Parameters: If your SQL query is parametrize query (with ?) then please assign the appropriate parameters using the dialog box.
  • Browse: This will allow us to select the SQL Query present in the file system.
  • Parse Query: This option will check whether the query is successfully parsed or not
OLE DB Source in SSIS 6
For the time being we are selecting the Table or View option here. If you selected this option then Name of the table or the View option will display all the available Tables and Views present in the current connection manager.
OLE DB Source in SSIS 7
From the above screenshot you can observe that we selected the Sales Person table from the Adventure Works Database. Click on the preview button to see the data present in the table
OLE DB Source in SSIS 8
Click on columns tab to verify the columns. We can also remove the unwanted columns by uncheck them.
OLE DB Source in SSIS 9
Click ok to finish configuring OLE DB Source in SQL Server Integration Services.
OLE DB Source in SSIS 10
Thank You for Visiting Our Blog

Flat File Source in SSIS 2014

In SQL Server Integration Services, Flat File Source is used to extract or reads data from text files. Flat File Source uses Flat File Connection Manger to connect with the text files.

Configuring Flat File Source in SSIS 2014

In this article we will show you, How to configure Flat File Source in the SQL Server Integration Services to extract data from Text Files.
Drag and drop the data flow task from the toolbox to control flow and change the name as Configuring Flat File Source in SSIS 2014.
Flat File Source in SSIS 1
Double click on it will open data flow tab. Now, Drag and drop Flat File Source from SSIS toolbox into the data flow region
Flat File Source in SSIS 2
Double click on Flat File Source in the data flow region will open the Flat File Source Editorto configure the connection manager settings. If you haven’t created Flat File Connection Manger before click on the New button and configure it.
Flat File Source in SSIS 3
Retain null values from the source as null values in the data flow: If you check mark this option then, it will retain the Null values as Nulls. IF you uncheck the option then, Null values from the source will be replaced with the default values or empty.
In this example we are selecting the already created Connection Manager.
Flat File Source in SSIS 4
From the above screenshot you can observe that we selected the already created connection manager. Click on the preview button to see the data present in the text file
Flat File Source in SSIS 5
Click on columns tab to verify the columns. We can also remove the unwanted columns by uncheck them.
Flat File Source in SSIS 6
Click ok to finish configuring Flat File Source in SQL Server Integration Services.
Flat File Source in SSIS 7
Thank You for Visiting Our Blog