Hello, I am trying to insert a row count into a log table after a bulk insert
is performed. I have put in the Row Count transformation task, storing the
value in a user variable, RowCount. At the end of the bulk insert, I am
executing T-SQL, creating an index, other stuff, and then I want to insert
this RowCount into a Log table. When I run the package, I get this error:
insert into LoadCCSCodeTableLog (NumRecords,EndDate) values
(@RowCount,getdate())
" failed with the following error: "Must declare the scalar variable
"@RowCount".". Possible failure reasons: Problems with the query, "ResultSet"
property not set correctly, parameters not set correctly, or connection not
established correctly.
Help?