status error for MSSQL Server Custom Functions