Execute SQL Task in SSIS

In this write–up we will demonstrate error and solution caused while using SQL Execute Task component in SSIS. This error occurred when candidate of
MSBI training was trying to perform “Select” query through Execute SQL Task.

Error:

The error occurred when trying to perform Execute SQL Task. As the name itself says it is a component using which we can execute any SQL tasks whether they are queries or whether they are stored procedures.

1

Go to “Progress” tab to see error in more detail.As the error here says that “The result binding name must be set to zero for full result set and XML results”

2

Now the error describes itself and there is no further easier way we can describe the error. While configuring the Execute SQL Task component there is an option known as Result Set. Now there are different options which we can select as our Result Set.

Result Set Contains 4 options:

  • None
  • Single Row
  • Full Result Set
  • XML

So here we have selected our option as “Full Result Set” as we will be handling bunch of records.

3

And then we have given some name to our result set,

4

And here is where the error is occurring as the error in the above image said that the name should be Zero for result binding set.

Solution:

The solution to this error is very simple, just put the Result name to Zero for Result Set options like Full Result Set and XML.

5

As this is done we will see that our component is executing successfully.

6

As said in the error of Progress tab that Result set should be set “0” once that is done error of MSBI training candidate got resolved.

Comments

comments

This entry was posted in MSBI Training in Mumbai and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.