Applies to: SQL Server (all supported versions) SSIS Integration Runtime in Azure Data Factory
This tutorial walks you through the process to extract the Employees collection from the sample Northwind OData service (https://services.odata.org/V3/Northwind/Northwind.svc/), and then load it into a flat-file.
- Launch SQL Server Data Tools or Visual Studio.
- Click File, point to New, and click Project.
- In the New Project dialog box, expand Installed, expand Templates, expand Business Intelligence, and click Integration Services.
- Select Integration Services Project for the type of project.
- Enter a name and select a location for the project, and click OK.
- Drag-drop a Data Flow Task from the SSIS Toolbox on to the control flow design surface of your SSIS package.
- Click the Data Flow tab, or double-click on the Data Flow Task to open the Data Flow design surface.
- Drag-drop OData Source from the Common group in the SSIS Toolbox.
- Double-click the OData Source component to launch the OData Source Editor dialog box.
- Click New… to add a new OData Connection Manager.
- Enter the OData service URL for Service document location. This URL can be the URL to the service document, or to a specific feed or entity. For the purpose of this tutorial, enter the URL to the service document: https://services.odata.org/V3/Northwind/Northwind.svc/.
- Confirm that Windows Authentication is selected for the authentication to use to access the OData Service. Windows Authentication is selected by default.
- Click Test Connection to test the connection, and click OK to finish creating an instance of OData Connection Manager.
- In the OData Source Editor Dialog Box, confirm that Collection is selected for Use collection on resource path option.
- From the Collection drop-down list, select Employees.
- Enter any additional OData query options or filters for Query Options. For example,
$orderby=CompanyName&$top=100. For the purpose of this tutorial, enter
- Click Preview to preview the data.
- Click Columns in the left navigation pane to switch to the Columns page.
- Select EmployeeID, FirstName, and LastName from Available External Columns by checking the check boxes.
- Click OK to close the OData Source Editor dialog box.
- Now, drag-drop a Flat File Destination from SSIS Toolbox to the Data Flow design surface below the OData Source component.
- Connect OData Source component with the Flat File Destination component using blue arrow.
- Double-click on Flat File Destination. You should see the Flat File Destination Editor dialog box.
- In the Flat File Destination Editor dialog box, click New to create a new flat file connection manager.
- In the Flat File Format dialog box, select Delimited. Then you see the Flat File Connection Manager Editor dialog box.
- In the Flat File Connection Manager Editor dialog box, for the File name, enter
- In the left navigation pane, click Columns. You can preview the data on this page.
- Click OK to close the Flat File Connection Manager Editor dialog box.
- In the Flat File Destination Editor dialog box, click Mappings in the left navigation pane. Review the mappings.
- Click OK to close the Flat File Destination Editor dialog box.
Run the SSIS package. Verify that the output file is created with ID, First Name, and Last Name for five employees from the OData feed.