Thanks very much. That works fine! The UDF is now just what I want and the stored procedure is a simple stripped down statement that just passes the parameters through...
Thanks. That works just fine! What I have to do is add a connection via the right click menu, choose an Existing connection and then Cut or Delete the icon....