Passing in/out parameters using Execute SQL task in SSIs/ETL

Source: Internet
Author: User

 

Variable settings: fieldout and fieldinput

SQL statement: Select top 1 outfieldname from table where field =?

Step 2: In general, set resultset to single row, sqlstatement: Select top 1 outfieldname from table where field =?

Add a variable in parameter mapping: vaiable name: User: fieldinput direction: Input datetype: nvarchar Parameter Name: @ field (this @ is the key)

In result set: a variable: Result name: outfieldname vaiable name: User: fieldout is also added.

The execution should be successful. This execution will check the rows of field = fieldinput and pass the value of outfieldname to the fieldout variable.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.