Ver originalALTER PROCEDURE SpRetornaIdExpediente @VALOR VARCHAR(50)=NULL,@SQL VARCHAR(8000)=NULL,@finalQuery VARCHAR(8000)=NULL,@msg AS VARCHAR(100) OUTPUT