create PROCEDURE [dbo].[sp_getMaxModello] AS BEGIN SELECT MAX(idModello) FROM [dbo].[R6_ReportSchede_ModelloScheda] END