Wednesday, April 27, 2005

SSIS in Yukon - Part II - Creating a Simple Package in SSIS

In the previous article we had discussed about the new IDE for SSIS.
Now let us see how to create a simple SSIS package. The following are the steps:

  1. From the File menu, click New-> Project.
  2. Under Projects, choose Business Intelligence Projects and under Templates, choose Integration Service Project, and then click OK.
  3. By default a package named Package.dtsx is created under the folder SSIS Packages. Click View-> Solution Explorer to see this.
  4. Right click on the Connections pane, and then click New OLE-DB Connection.
  5. Create two new connections - one to your Yukon source server and another to your Yukon destination server. Name these connections as MySourceConnection and MyDestinationConnection.
  6. From the View menu, click Toolbox.
  7. Now drag and drop a Data Flow Task component on the Control Flow pane.
  8. Double-click the Data Flow Task component to take you to the Data Flow pane.
  9. From the toolbox, drag and drop a OLE DB Source component and OLE DB Destination component. Name them as MySource and MyDestination respectively.
  10. Double-click MySource.
  11. Set the connection of MySource to MySourceConnection.
  12. Set the Data-access mode to Table or View.
  13. Set the name of the Source table from the listed tables of the database.
  14. By clicking on the Columns tab on the left, you will be able to see the list of columns for the table. You can uncheck the columns that are not needed and then click OK.
  15. Set the properties of MyDestination OLEDB component in the same way as in 14.
  16. Click on MySource component. Drag the Green arrow you notice and make it point to MyDestination component. You have now connected the Source and the Destination components.
  17. From the Debug menu click Start to run your first SSIS project.

Once your package has executed successfully, you will see components (Dataflow task, MySource and MyDestination) coloured in Green. And if there is any failure during execution, the components are coloured in Red. The success or failure of the package can be monitored by clicking on the Progress tab in the project during execution.

Note: The Source and Destination components must contain the same number of columns and same column names (case sensitive) to avoid Validation errors.

You can also have Event Handlers at the Package level or for each component in the Event Handler tab.

So this is how we go about creating a simple package. My next article will focus on how you can programmatically create these SSIS packages using Whidbey.

3 comments:

maharshi said...

good info lakshmi...keep updating

Srikanth said...

Your post is very much useful. Thanks. Keep writing.

sivashiva said...

Hi Lakshmi

Thank you for posting abt SSIS.
i have been searching for thsi stuff. i find good post here.

Appreciatable help
Thank you