A medium for recording therein a program which is used to operate a computer as a database server for analyzing an invocation for the group of overloaded routines to determine the routine to be called, when a request for inquiry including a routine invocation is input, said database server comprising:
- a routine selecting processing unit for obtaining routine information having a same routine name and a same number of arguments as those of said routine invocation from dictionary information of said routine and selecting routines having arguments adaptable to data types of arguments of said routine invocation among said routine information obtained;
- a routine group sorting unit for sorting the group of routines selected in said routine selecting processing on a basis of predetermined precedence of data types of arguments;
- a reference utilization pruning processing unit for determining the routine which has the highest precedence of a data type of an argument from among the routines which can be called for the types in the definition of the arguments of the invocation from the sorted routines and for deleting any of the routines each of which has the lower precedence than that of the routine thus determined from the candidates;
- and
- a sorted characteristic pruning processing unit for comparing the data types of corresponding arguments among routines which still remain in said reference utilization pruning processing and extracting all arguments whose data types are abstract data type ADT and deleting a routine having a lower precedence in a sorting order, when a data type of each argument extracted is identical to a data type of argument of a same position of a routine having a higher precedence in said sorting order or a sub-type of a data type of argument of said same position of said routine having a higher precedence in said sorting order.