SET @s = ' SET @cn = (SELECT Count (' + COL_NAME (OBJECT_ID (' Result '), @sch) + ')
FROM Result
WHERE Id_s = ' + @id_s + ' and ' + COL_NAME (OBJECT_ID (' Result '), @sch) +>>> ' between ' + @min + ' and ' + @max + ') ' <<<
execute sp_executesql @s, N ' @cn int output ', @cn out
↧
Re: Count of lines in dynamic request
↧