I have a variable in my database function:
@LocalVariable = \'2*3*100\'
I want to get the result by executing the expression in another var
DECLARE @LocalVariable NVARCHAR(100) SET @LocalVariable = '2*3*100' EXEC ('SELECT ' + @LocalVariable)