Ver originalDECLARE @id_planilla AS NUMERIC(18,0)DECLARE @query VARCHAR(100)SET @id_planilla = 157SET @query = 'EXEC planilla.dbo.PlanillaResumenMontos '''+CAST(@id_planilla AS VARCHAR)+''''SELECT * FROM OPENQUERY([BETHOVEN],@query)