Home Forums SQL Server 7,2000 T-SQL DECLARING CURSOR FOR WITH A VARIABLE RE: DECLARING CURSOR FOR WITH A VARIABLE
paulhumphris
Hall of Fame
Points: 3496
More actions
June 12, 2003 at 2:35 am
#460995
Your understanding is correct, because the dynamic sql will be executing in a differenc scope to your main procedure you will have to include the WHOLE cursor operation (declare, open, fetch, close, deallocate) within your dynamic code.