Thank this author by sharing:
By Bharat Panthee, 2010/12/15
You can use it to evaluate statement like '3+4/2-1' in sql server.
You can call this function like select dbo.EvalSQLStatement('4+5*6-3') and this will return 31 in this example.
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.
Join us!
Steve Jones Editor, SQLServerCentral.com