Why can't I call a SP that has parameters?
- New
- Advice
-
Louis Arena
- PowerBuilder
- Thursday, 25 September 2025 06:35 PM UTC
Why am I getting an error when trying to call this stored procedure? The PS starts with this.
ALTER procedure [dbo].[p_file_upload_info_triggers] (@i integer)
with execute as owner
The PB code is the following.
declare proc_triggers_disable procedure for dbo.p_file_upload_info_triggers (@i = 2)
using sqlcb;
execute proc_triggers_disable;
When I debug the code sqlcb.code has a negative -1
But If I run it this way without any variables in the SP it works.
ALTER procedure [dbo].[p_file_upload_info_triggers]
with execute as owner
The PB code is the following.
declare proc_triggers_disable procedure for dbo.p_file_upload_info_triggers
using sqlcb;
execute proc_triggers_disable;
Makes no sense. I even tried the parameters as (@i = :i) and set I to 2 but this did not work either.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.