I was trying to find a way to loop through a temp table that has all the databases that I want to compile two stored procs and execute one of them in a loop.
I was hoping to use a while loop on the temp table and use the 'Use' database syntax, compile the 2 objects and execute one of them but that doesn't work.
Any other suggestions? Do I have to parse it out into a cursor? Is there another way?
Thanks Again,
Daniel