ODBC Source in ssis
![odbc](https://sqlserverrider.files.wordpress.com/2013/01/odbc.png?w=595)
In this blog Post, I am going to implement a simple data transfer SSIS package using ODBC Source task. This task is available in SQL Server 2012. It helps us to integrate data from different platform and make simplified connectivity to SQL Azure.
Implementation
Step 1: Create a package and Add a data flow task
![pic1](https://sqlserverrider.files.wordpress.com/2013/01/pic126.png?w=595)
Step 2: Go to data flow task designer and add ODBC Source connection
ODBC Configuration
Edit this task and click new button on the dialog box
![pic1](https://sqlserverrider.files.wordpress.com/2013/01/pic128.png?w=595)
![pic2](https://sqlserverrider.files.wordpress.com/2013/01/pic219.png?w=595)
Build the connection string in the connection manager
![pic3](https://sqlserverrider.files.wordpress.com/2013/01/pic312.png?w=595)
Create new ODBC data source
![pic4](https://sqlserverrider.files.wordpress.com/2013/01/pic412.png?w=595)
Select user data source and click next button
![pic5](https://sqlserverrider.files.wordpress.com/2013/01/pic511.png?w=595)
Select ODBC driver 11 for SQL Server from the drivers list and click next
![pic6](https://sqlserverrider.files.wordpress.com/2013/01/pic610.png?w=595)
Click finish now
![pic7](https://sqlserverrider.files.wordpress.com/2013/01/pic78.png?w=595)
We have created the Data source configuration with ODBC 11 driver. Now, we need to connect it with SQL Server. So, next steps are for creating data source connection to SQL Server.
Data source connection to SQL Server
Give Data source name and SQL Server name.
![pic8](https://sqlserverrider.files.wordpress.com/2013/01/pic89.png?w=595)
Click finish now or you can move to next steps in the wizard to set up connection string properties. But, I am using the default settings for this connection.
![pic9](https://sqlserverrider.files.wordpress.com/2013/01/pic96.png?w=595)
Test the data source and make sure you are able to connect to SQL Server and Click OK
![pic10](https://sqlserverrider.files.wordpress.com/2013/01/pic104.png?w=595)
We have created a new ODBC data source name. We should use this name to connect to source or destination connection in the package.
![pic11](https://sqlserverrider.files.wordpress.com/2013/01/pic1110.png?w=595)
We have got two options now. We can use connection string or select the newly created data source name “AdventureWorks” in the data source selection option.
Click OK. OK.
Select a table for the data source
![pic12](https://sqlserverrider.files.wordpress.com/2013/01/pic129.png?w=595)
Click OK to complete the data source configuration.
Step 3: Add a Data Reader Destination task and connect ODBC source task.
![datadest](https://sqlserverrider.files.wordpress.com/2013/01/datadest.png?w=595)
Step 4: Execute package now.
![datadest](https://sqlserverrider.files.wordpress.com/2013/01/datadest1.png?w=595)
Package executed successfully.
We have learned to configure ODBC Source task and connect with SQL Server in this blog post.
0 comments:
Post a Comment