I have query that return column having equation as nvarchar column
i want to execute this string to be the result of the equation for-each row
look at the return of the query
ID Equation Result
1098 1300834703.69700+1197853461.64800 0
1103 1490867539.51300-0.00000 0
You can use EXEC sp_executesql -- which has the added benefit of allowing you to use all SQL functions, such as ABS, SIGN, etc. -- but you have to run cursor through (ugh!) each equation separately, you can't really do it directly within a query.