I have the following expression:EXEC staging.InsertHeader '?', ?, ? OUTPUT And have created the following parameters:User::LastPartitionDateForSalesRetention Input VARCHAR 0User::DataTransferSchemaID Input SHORT 1User::RowCountOUTPUT Input LONG 2And the following ResultSet to hold the OUTPUT param results:RowCount User::RowCountI get the following error:Error: 0xC002F210 at Insert Header, Execute SQL Task: Executing the query "EXEC staging.InsertHeader '?', ?, ? OUTPUT " failed with the following error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
I'm pretty new to SSIS, so I have no idea what I have done wrong. I've looked at examples on the web, and matched what they have done? Can anyone please shed some light?It works when I use an expression in the following format and the results are output to the resultset:"DECLARE @RowCount INTEXEC staging.InsertHeader '"+ (DT_WSTR, 8) @[User::LastPartitionDateForSalesRetention] +"', @RowCount OUTPUT,"+ (DT_WSTR, 1) @[User::DataTransferSchemaID]+" SELECT @RowCount"Is this an OK way to do things, or should I use parameters (if I can get it working). What is the correct way?ThanksHearty head pats