CREATE PROCEDURE [dbo].SP_PDF_DARESTORARE AS BEGIN SELECT IdPdf FROM DocumentiPdf WHERE idStato = 'D' AND idArchivio = 'C' END