belovedcej
Programmer
I have a stored proc which is calling another stored proc. Here's a shortened version:
the sp I am executing is updates a table and returns the id of the record updated.
No syntax errors, but it won't run, so I assume I'm doing something wrong. Never tried this before, and I suspect it's a problem with my output parameters. It not only won't return the output, but it won't update the table.
Code:
ALTER Procedure dbo.CSF_UPDATE_Address_SP
(
@Address_ID Integer,
@Line_1_VC30 Varchar(60),
@ReturnID Int OUTPUT)
AS
exec sco_db.dbo.address_update_sp
@address_id,
@Line_1_VC30,
@ReturnID OUTPUT
Select @returnID
the sp I am executing is updates a table and returns the id of the record updated.
No syntax errors, but it won't run, so I assume I'm doing something wrong. Never tried this before, and I suspect it's a problem with my output parameters. It not only won't return the output, but it won't update the table.