Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

Execute SQL Task in SSIS

$
0
0

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.


Execute SQL Task in SSIS

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”


Execute SQL Task in SSIS

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.


Execute SQL Task in SSIS

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


Execute SQL Task in SSIS

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.


Execute SQL Task in SSIS

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


Execute SQL Task in SSIS

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.


Viewing all articles
Browse latest Browse all 3160

Trending Articles