It also lets you do some string-concatenation tricks, like the one I posted. RE: where it executes, it'll run in whatever database you're currently in. Note that you could just do "exec @SQL", but ...