[sql] how to call scalar function in sql server 2008