T Sql Create Function Returns Table Setting