title: How can I set a cursor to a dynamically created SQL query in stored procedure
body: <p>I want to create a dynamic command using @sqlQuery variable.  I've also declared a cursor (example: @myCursor).  How can I "SET @myCursor = CURSOR FOR @sqlQuery".  The syntax I just noted doesn't work.  I am using SQL 2000.</p>