El comando EXEC, puede servirte!
EXECUTE a CHARACTER string
{ EXEC | EXECUTE }
( { @string_variable | [ N ]'tsql_string' } [ + ...n ] )
[ AS { LOGIN | USER } = ' name ' ]
[;]
Por ejemplo,
DECLARE @sqlCommand VARCHAR(1000)
DECLARE @columnList VARCHAR(75)
DECLARE @city VARCHAR(75)
SET @columnList = 'CustomerID, ContactName, City'
SET @city = '''London'''
SET @sqlCommand = 'SELECT ' + @columnList + ' FROM customers WHERE City = ' + @city
EXEC (@sqlCommand)