I have a query that runs against a sql server database that produces a sql statement for each row of the query returned.
EG.
DROP PROCEDURE dbo.[Proc1]
DROP PROCEDURE dbo.[Proc2]
etc
In the same script, how can I execute the sql returned in the query?
Dump the results into a variable of type varchar(max) or nvarchar(max) and then EXEC them