OK, I think I have to make more clear what I want to do: I want to declare a cursor over a table variable, not a cursor over a table. This is because I want to use the table variable in the rest of the SQLScript code, and don't want to issue a second identical SQL statement.
↧