I have a dynamic SQL statement I\'ve created in a stored procedure. I need to iterate over the results using a cursor. I\'m having a hard time figuring out the right syntax.
There is another example which I would like to share with you :D http://www.sommarskog.se/dynamic_sql.html#cursor0