Excel files are bulk imported into SQL Server database (using the foreach container)

Source: Internet
Author: User
Tags ssis

Specific steps such as:
1, first drag a foreach control in the SSIS Toolbox, and select the corresponding folder, matching the corresponding file, as follows

2. Create variables to receive

3. Drag into a data Flow task, and then drag it into an Excel source and OLE DB Destination, respectively, with the following settings

4. Edit the Excel Connection Manager, here will use a foreach variable to replace the Excel file that you just selected, the Connection manager's properties to set the mapping method of the variable, expressions attribute Edit list, left select Excelfilepath, This is the property of the Connection Manager, we will use the variable instead, then click on the expression's property Edit button, drag the variable user variable in the list to the expression box below, this is the error of SSIS, and give a warning, open the Properties window of foreach, Setting DelayValidation to True is possible.

Excel files are bulk imported into SQL Server database (using the foreach container)

Related Article

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.