Here's the call...
select 'dbr.editable','Lead Goal','sp_DBR_update_lead_goal_1','inLeadGoal=3','inUserID=22';
Here's the query...
select
'Fantasy 1' as 'Scenario Name',
cs.deal_count as 'Sold Deal Goal',
cs.lead_count as 'Lead Goal',
.....18 lines snipped....
cs.user_id as 'UserID[user]'
from
...rest of query clipped.....
The stored proc is very simple...
CREATE PROCEDURE sp_DBR_update_lead_goal_1
(IN inLeadGoal
int, in inUserID varchar(20))
BEGIN
update dw_auto.comm_summary
set lead_count = inLeadGoal
where pay_period_id = 998
and user_id = inUserID
;
END
So for some reason I can update the table when I take off the UserID limit, but can't just update the correct record. The UserID information never seems to make it through the call.