| title | Extract Data by Using the OLE DB Source | |||
|---|---|---|---|---|
| description | Extract Data by Using the OLE DB Source | |||
| author | chugugrace | |||
| ms.author | chugu | |||
| ms.date | 03/01/2017 | |||
| ms.service | sql | |||
| ms.subservice | integration-services | |||
| ms.topic | how-to | |||
| helpviewer_keywords |
|
[!INCLUDEsqlserver-ssis]
To add and configure an OLE DB source, the package must already include at least one Data Flow task.
-
In [!INCLUDEssBIDevStudioFull], open the [!INCLUDEssISnoversion] project that contains the package you want.
-
In Solution Explorer, double-click the package to open it.
-
Click the Data Flow tab, and then, from the Toolbox, drag the OLE DB source to the design surface.
-
Double-click the OLE DB source.
-
In the OLE DB Source Editor dialog box, on the Connection Manager page, select an existing OLE DB connection manager or click New to create a new connection manager. For more information, see OLE DB Connection Manager.
-
Select the data access method:
-
Table or view Select a table or view in the database to which the OLE DB connection manager connects.
-
Table name or view name variable Select the user-defined variable that contains the name of a table or view in the database to which the OLE DB connection manager connects.
-
SQL command Type a SQL command or click Build Query to write a SQL command using the Query Builder.
[!NOTE]
The command can include parameters. For more information, see Map Query Parameters to Variables in a Data Flow Component. -
SQL command from variable Select the user-defined variable that contains the SQL command.
[!NOTE]
The variables must be defined in the scope of the same Data Flow task that contains the OLE DB source, or in the scope of the same package; additionally, the variable must have a string data type.
-
-
To update the mapping between external and output columns, click Columns and select different columns in the External Column list.
-
Optionally, update the names of output columns by editing values in the Output Column list.
-
To configure the error output, click Error Output. For more information, see Debugging Data Flow.
-
You can click Preview to view up to 200 rows of the data extracted by the OLE DB source.
-
Click OK.
-
To save the updated package, click Save Selected Items on the File menu.
OLE DB Source
Integration Services Transformations
Integration Services Paths
Data Flow Task