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.
VBScript
workspace.GetQueryDef queryName
Perl
$workspace->GetQueryDef(queryName);