Execute SQL Task to execute a stored procedure with parameters

Source: Internet
Author: User
Tags ole

When execute SQL Task executes a stored procedure with parameters, the way the parameters are passed is different, depending on the use of the link, there are two main types: OLE DB and ADO.

Createint)  
int as on tovalues (@id)END

1, if ConnectionType is OLE DB, then use? Represents the parameter name,? The serial number is from 0,1,2, and so on.

SQLStatement: SQL statement to execute, using? Represents the parameter,? The ordinal number is the name of the parameter.

Isquerystoreprocedure: Not selectable state, default is False

ParameterMapping: Pass value for parameter, ParameterName is? The serial number, the first one? The serial number is 0.

2, if ConnectionType is adonet, then the name of the parameter must be written in ParameterMapping, ParameterName is all characters except the @.

SQLStatement: Enter the name of the stored procedure

Isquerystoreprocedure: Optional state, check True

Parameter Mapping: Enter the parameter name in Parameter name, parametername is all characters except @

Execute SQL Task to execute a stored procedure with parameters

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.