Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:47:05+00:00 2026-06-17T21:47:05+00:00

I am working on an SSIS package with very limited knowledge. I have one

  • 0

I am working on an SSIS package with very limited knowledge. I have one “Execute SQL Task” that retrieves about 300 rows from a view. I put the result set into an employeeList object.

My next step is to insert these records to a table. I tried creating a ForEach Loop Container and put my “Execute SQL Task” into this container. My parameter mapping is :

variable name      | direction | datatype| parameter name | parameter size 

User::employeeList | input     | varchar | 0  | -1.
User::employeeList | input     | varchar | 1  | -1.
User::employeeList | input     | varchar | 2  | -1.
User::employeeList | input     | varchar | 1  | -1.

…

The error I get is : Error: 0xC002F210 at Populate Data, Execute SQL Task: Executing the query “INSERT INTO [dbo].[xxxx] ( [field1], [Perso…” failed with the following error: “An error occurred while extracting the result into a variable of type (DBTYPE_STR)”. Possible failure reasons: Problems with the query, “ResultSet” property not set correctly, parameters not set correctly, or connection not established correctly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:47:06+00:00Added an answer on June 17, 2026 at 9:47 pm

    The Execute SQL Task is fine and dandy but for your situation, it sounds like a Data Flow will suffice.

    Delete your existing stuff and drag a Data Flow onto your Control Flow. Double click the Data Flow and add an OLE DB Source and an OLE DB Destination.

    In your OLE DB Source, change the OLE DB connection manager to the name of your source connection. Change the “Data access mode” from Table or View to SQL Command. The former is easier to click but incurs a slight performance overhead versus writing the equivalent SELECT * FROM mytable. In the no-longer-greyed-out window, put your query.

    SELECT column1, column2, ... FROM dbo.MyView
    

    Generally speaking, you should enumerate all the columns you want. Pulling back columns you don’t need wastes memory and that is what makes SSIS fast.

    Wire the green arrow from the source to the “OLE DB Destination”. Double click it and change the OLE DB connection manager to be your target database connection. In there, change the Data access mode to Table or view - fast load. This allows us to load data in bulk whereas the default Table or view issues an insert for each row that flows through and that’s slow. Find the target table name, dbo.xxxx in the drop down and then click the Mappings tab. It should auto-map based on name matching. Go through and verify things map as expected. Click OK

    Save and it should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working SSIS task that executes once in a month and runs
I'm working with a SSIS package that takes data from SQL Server and creates
I am working on an SSIS package that uses a c# script task. For
I am working on a SSIS package that extracts some data from DB to
I'm working with an SSIS Package that pulls data from a DB2 source, runs
I m working with SSIS I have created a package to modify a file
i am working in a client server envirnoment.. i have an SSIS package with
I have build an SSIS package which is working well within BIDS. The package
As part of an SSIS package that I am currently working on, I need
I have written a working T-SQL MERGE statement. The premise is that Database A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.