String Expression to be evaluated to number
问题 I need to write a TSQL user defined function which will accept a string and return a number. I will call the function like dbo.EvaluateExpression('10*4.5*0.5') should return the number 22.5 Can any one help me to write this function EvaluateExpression . Currently I am using CLR function which I need to avoid. Edit1 I know this can be done using stored procedure, but I want to call this function in some statements ex: select 10* dbo.EvaluateExpression('10*4.5*0.5') Also I have around 400,000