GetQueryDefByDbId
Description
Returns the QueryDef object associated with the specified workspace query. This method is the same as GetQueryDef, except the lookup is by DBID.
Note: You must call SetSession on the Workspace
object before calling GetQueryDef, if you have not created a Session
object.
Note: For more information on DBIDs, see Working with records
Syntax
VBScript
workspace.GetQueryDefByDbId
dbid
Perl
$workspace->GetQueryDefByDbId
(dbid);
- Identifier
- Description
- workspace
- The Workspace object obtained from the current session.
- dbid
- A Long containing the DBID of the query.
- Return value
- Returns a reference to the QueryDef object associated with the query.