OpenQueryDef
Description
Loads a query from a file.
This method loads a previously defined query from a file. The query can be either a built-in query or one saved by the user from DevOps Plan.
Syntax
Perl
$session->OpenQueryDef(filename);
- Identifier
- Description
- session
- The Session object that represents the current database-access session.
- filename
- The name of the file from which to load the query information.
- Return value
- A QueryDef object containing the query information.
Example
Perl
sessionObj = $entity->GetSession();
#Get the query from file "C:\queries\myQuery.txt"
$queryDefObj = $sessionObj->OpenQueryDef("C:\queries\myQuery.txt");