I have a custom scalar function in SQL Server 2012. It takes 2 floats and returns a nvarchar. Tested and works inside SQL Server.
I've not found any examples of how to call it from node-mssql. The attempts I've made fail with:
TypeError: Cannot set property 'value' of undefined
Which appears to be an error from the node-tedious package...so possibly tedious doesn't support it yet.
I have a working version that calls a Stored Procedure with two input parameters that returns a recordset, but as I really only need one value, it seems like it's over kill, and an executeScalar call would be useful here (something I'm used to having from .NET).