Hi there I am wanting to execute this stored procedure
However, I receive the error:
Incorrect syntax near '+'.
Is it possible to run a stored procedure like this?
Code:
DECLARE @String Varchar(8000)
SET @String = '''S501734'',''S510385'''
INSERT INTO #Output
exec spt_rep_payable_status '( creditor.account_no in (' + @String + ') ) ', NULL, NULL, 'ZLV', '', '', '', '', 0, 0, 'Jul 20 2006', 'N', ',Approved,Paid,Part Paid,', ',Normal,', 'c', 'Y'
However, I receive the error:
Incorrect syntax near '+'.
Is it possible to run a stored procedure like this?