I've been wondering if it's possible to declare and set a variable within the definition of another variable. For example:
declare @variable varchar(250)
set @variable =
'INSERT INTO [BLAH] (Nope, Hype, Friends)
VALUES (declare @value varchar(250) set @value = 'example' exec @value, @value, @value)'
exec @variable
I'm probably doing multiple really basic mistakes here - just trying to understand as much as fast as possible