Register MSSQL Server specific math functions

Fixes #990