the stored proc in simplified form is
create Procedure dbo. p_wkholdgFromCsv_upd(@Valuation_dt DATE, @Acct_grp_ID INT, @subAcct_ID INT, @Acct_ID,...
, @updatedCnt int output)
AS
BEGIN
DECLARE @w_Acct_ID INT
...
update dbo.wkholdgFromCsv set Valuation_dt = @Valuation_dt, Acct_grp_ID = @Acct_grp_ID,.....
where [Valuation_dt] = @Valuation_dt and [Acct_grp_ID] = @Acct_grp_ID and [subAcct_ID] = @subAcct_ID and [Fi_Sym] = @Fi_Sym
set @updatedCnt = @@RowCount
END
if I remove the set statement, it will be fine