Bestway IT
asked on
SSIS Package : Execute Sql task with a parameter from row count
Dear All,
I have developed SSIS package whith the following components
1. Data Flow Task - With OLE DB Source Then Row Count with variable vrbRowCount(int32) then a Destination.
2. Execute SQL TASK with the follwing Sql and Result set as Single row
Update wf_cntl
Set src_rowcount = ?
Where tbl_name = 'Invoice_Header'
And Parameter mapping
Variable name : vrbRowCount
Direction Input
Dataa Type Long
Parameter: new parameter
Parameter value : 50
It results in an error please help what is the correct settings
I have developed SSIS package whith the following components
1. Data Flow Task - With OLE DB Source Then Row Count with variable vrbRowCount(int32) then a Destination.
2. Execute SQL TASK with the follwing Sql and Result set as Single row
Update wf_cntl
Set src_rowcount = ?
Where tbl_name = 'Invoice_Header'
And Parameter mapping
Variable name : vrbRowCount
Direction Input
Dataa Type Long
Parameter: new parameter
Parameter value : 50
It results in an error please help what is the correct settings
Any chance we can get the text of the error? What you're trying to do seems reasonable, so nothing obvious jumps out, but it's hard to troubleshoot further without the specific error message being given.
Alright, 2 issues here, you're expecting a resultset from updating one record, and you would get nothing!!
and the second is setting the resultset to single row and configured nothing in the resultset property
Have you tried to set the ResultSet to NONE ?
and the second is setting the resultset to single row and configured nothing in the resultset property
Have you tried to set the ResultSet to NONE ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Please close this question as answer was found on the TechNet website. Thank you.
ASKER
Found the answer.