Link to home
Start Free TrialLog in
Avatar of Bestway IT
Bestway ITFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of Ryan McCauley
Ryan McCauley
Flag of United States of America image

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 ?
ASKER CERTIFIED SOLUTION
Avatar of Bestway IT
Bestway IT
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bestway IT

ASKER

Please close this question as answer was found on the TechNet website. Thank you.
Found the answer.