This is not an answer, but I do not have enough reputation for comment.
"You can write a CLR stored procedure that still uses NCalc to compute."
You CAN do this, but remember that you can only add links to Sql Server Projects, which can only link to other Sql server projects. Thus, you CAN create a SqlServer project and link all the files from the NCalc project and try to build it, but then you will have to do the same with all the links of the NCalc project. Not all of them are open source. I suppose you CAN use Reflector to decompile all of these links and put them in the SqlServer project.
But if you did all this and finally get your build solution, you will probably find out that you can add the link only as a UNSAFE link, which would mean that you have to start changing all kinds of SqlSever permissions ...
At this point, you will probably give up.
What I'm trying to say is much more work here than the original answer suggests.
source share