"Bi thing" data stream conversion--ole DB command Conversion

Source: Internet
Author: User
Tags ole

The OLE DB command executes an OLE DB command on the data rows in the data flow. It updates each row in the data table and stores the data that will be updated in the table beforehand. Or for a stored procedure with input parameters, these parameters can be stored in a data table without having to enter parameters each time.
Sample Data Preparation:

CREATE TABLE INT INT )  CREATETABLEINTint  )     INSERT   VALUES12

To create a stored procedure:

CREATE PROCEDURE [dbo].[usp_doubleinputvalues]    @input1 INT ,    @input2 INT as     BEGIN        SETNOCOUNT on; INSERTdestinationoledbcommanddest (Dest1, Dest2)VALUES(@input1 * 2,@input2 * 2 )     ENDGO

To create a data Flow task:





Result set:

"Bi thing" data stream conversion--ole DB command Conversion

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.