• You need to call it using a two part identifier.

    In this case it is probably dbo.InsPolVal(data). If the function has a schema, use that in replacement of the dbo. (policy.InsPolVal)

    Also, unless I am much mistaken if your function is returning more than 1 value, you cannot use it in a select statement. It must be a scalar value function to be used in the select statement.

    Hope that helps