DECLARE @Total INT SET @Total = 2 select Top (@Total) FPG from Incentive_0_3_BD order by FPG
declare @mysql varchar(max) declare @topCount varchar(4) set @topCount='5' set @mysql='select top ' + @topCount + '* from TABLE_NAME' exec(@mysql)
declare @Tot_10 int DECLARE @myCommand NVARCHAR(1024) SET @myCommand = 'select Top ' + CAST(@Tot_10 AS NVARCHAR) + 'FPG from Incentive_0_3_BD order by FPG' EXECUTE (@myCommand)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)