1. A method, comprising: translating source code including at least one query statement written in a database query language into executable object code in a computer readable storage medium; generating a statement descriptor data structure in the object code including statement descriptor information for the translated at least one query statement including information on the at least one query statement as presented in the source code; executing the object code to cause execution of the at least one query statement; accessin˜the statement descriptor information in the statement descriptor data structure in the object code for the at least one executed query statement; and processing the accessed statement descriptor information to output information on the at least one query statement included in the statement descriptor information.
1. A method, comprising: translating source code including at least one query statement written in a database query language into executable object code in a computer readable storage medium; generating a statement descriptor data structure in the object code including statement descriptor information for the translated at least one query statement including information on the at least one query statement as presented in the source code; executing the object code to cause execution of the at least one query statement; accessin˜the statement descriptor information in the statement descriptor data structure in the object code for the at least one executed query statement; and processing the accessed statement descriptor information to output information on the at least one query statement included in the statement descriptor information. 4. The method of claim 1 , further comprising: modifying the at least one query statement in the source code to produce at least one modified query statement; including the at least one modified query statement in the statement descriptor information; and translating the at least one modified query statement into the executable object code.