-- try and do dirty reads, and turn off the record counting unless you want
-- spam in the middle of your prints below. you can also just do a select
-- instead of a print.
set
transaction
isolation
level
read
uncommitted
set
nocount
on
-- vars to hold the commands to queue up and the command var for the one we'll run
-- identity is used to preserve order in case we decide to have a particular order
-- otherwise it will just run in the order we create the commands
declare @command nvarchar(max), @id int
declare @commands table(id int
IDENTITY(1,1)
PRIMARY
KEY
CLUSTERED, command nvarchar(max))
-- strint to look for
declare @StringToFind...