79575723

Date: 2025-04-15 17:32:46
Score: 1.5
Natty:
Report link

My requirement is a simple one. I just want to evaluate a text expression like the following:

'(((456883×45877)+533)/899955)'

To do this in a stored function I have had to write nearly 400 lines of code. Whereas to do this in a stored procedure, using SP_EXECUTESQL, requires only five lines of code.

Surely Microsoft could allow the use of SP_EXECUTESQL, if it only results in the output of a numeric value.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Joe Boyle