Is this possible?
I have a SP that scrolls through databases via a cursor. Because the
database name changes, I need to place the statement in an EXEC()
statement rather than leave it outside. But, I also want to store a
variable with a result in the statement. See below:
have it execute too?