I am trying to execute the following to call a DB2 stored procedure from SQL Server 2000.
DECLARE @ICVR_CLAIM_NBR VARCHAR(19)
SET @ICVR_CLAIM_NBR= 'XXXXXXXXXXXXXXXXXXX'
EXEC('call PPSPCOL.X2COVSEL (?)', @ICVR_CLAIM_NBR) AT [EXCEEDPP]
and I get the following error
Incorrect syntax near ','.
It works in SQL Server 2008. Any ideas?