wooody1245
Programmer
Is there a way that I can use a variable in a select top statement like the one below?
select top @max_results from my_table where column1 = @variable
I'm passing @max_results to a stored procedure to limit the number of rows returned.
select top @max_results from my_table where column1 = @variable
I'm passing @max_results to a stored procedure to limit the number of rows returned.