I wrote a SP that contains a cursor. This cursor needs to use the SP parameter for the cursor query.
I had the error that said that parameter must be declared. Please help. Thanks a lot!!!
create procedure spr_test
@param1 int as
declare test_cursor cursor for
select emp_id, emp_name from employee where emp_id = @param1
.... -> got error as 'Must declare the variable @param1'