Returns the SQL string that expresses the query.
A ResultSet can be based on either a QueryDef object or an SQL string. In either case, you can retrieve the SQL commands that express the query. It is legal to invoke this method either before or after you run the query by calling the Execute method.
VBScript
resultset.GetSQL
Perl
$resultset->GetSQL();