second resolution when user3 issues the same query the algorithm encounters the environment entry inserted on behalf of user2 first environment2 there is no better_match_entry in this environment for the first resolution and user3 is authorized to execute the f1 a the resolved to routine for the first resolution moving on to the second resolution user3 is authorized to execute the u2018 better match u2019 f2 a the algorithm will thus return u2018 u2212 1 u2019 indicating that a new environment entry environment3 needs to be inserted before the two existing environment entries there is no need to check the other environment 39 s entry environment1 because the algorithm dictates that any subsequent environments could not be a match for user3 the embodiments of the present invention provide a method a data processing system a computer program product and or an article for compiling for a user that has been granted execute privileges to selected database access routines a dynamic structured query language sql statement having overloaded object types it will be appreciated by those skilled in the art that the article can be a signal bearing medium having means for transporting computer readable code to a data processing system over a network in which the code can be used to implement the method it will also be appreciated by those skilled.