I have a global function that executes my embedded SQL Queries passing the query statement as a paramter. It returns the Result Set if one. In this function how can I test to find out if a result was returned without triggering an error if there is not one and without using SQLFetch which will retrieve the first row if one. I want to use SQLFetchResultsetValues if there is a result but using SQLFetch will get the first row and then SQLFetchResultsetValues will be missing the first one.