I'm trying to create a stored procedure that uses
SELECT TOP 20 * from tblRecords ....
I want the number of rows returned to be sent to the procedure as a parameter.
For some reason it says I have a syntax error near the parameter I use:
SELECT TOP @PARAM from tblRecords ....
Is there a straight way to do it or will I need to construct the Statement using String concatenations and execute it....