GetSQL

Description

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.

Syntax

VBScript


resultset.GetSQL 

Perl


$resultset->GetSQL(); 
Identifier
Description
resultset
A ResultSet object, representing the rows and columns of data resulting from a query.
Return value
A String containing the raw SQL that expresses the query upon which this ResultSet is based.