GetQueryDef

Description

Returns the QueryDef object associated with the specified workspace query.

You use this method to get the information associated with the specified workspace query. You can use the returned QueryDef object to get information about the query, such as the SQL string used to execute the query.

Note: You must call SetSession on the Workspace object before calling GetQueryDef, if you have not created a Session object.

Syntax

VBScript


workspace.GetQueryDef queryName 

Perl


$workspace->GetQueryDef(queryName); 
Identifier
Description
workspace
The Workspace object obtained from the current session.
queryName
A String containing the workspace pathname of the query
Return value
Returns a reference to the QueryDef object associated with the query.