Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / SQL

Pass OUTPUT Parameter from Stored Procedure to SSIS Precendence Constraints

0.00/5 (No votes)
20 Sep 2014CPOL 19.3K   101  
Pass OUTPUT parameter from stored procedure to SSIS Precendence Constraints

Introduction

This tip will help to give points to be considered while writing the logic in SSIS package as per the value returned in the OUTPUT parameter of the stored procedure..

Background

The question posted at http://www.codeproject.com/Questions/819503/How-to-pass-out-parameter-from-stored-procedure-to?arn=5 gave me the idea to write this tip.

Using the Code

Example for this tip is attached to it. Here, I would like to just give a brief idea about the things to be considered.

  1. Add "Execute SQL Task" to execute stored procedure and configure it as shown in below screen shots:

    Image 1

    Image 2

  2. Just to set the conditions in Precedence constraints, I have taken two data flow tasks. Connect these data flow tasks with Success Precedence.
  3. Configure these Success Constraints as shown in the below image:

    Image 3

Points of Interest

Always format the SQL scripts as per standards so it is easy to understand for all.

History

  • Initial draft

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)