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 HCL Compass.

Syntax

VBScript


session.OpenQueryDef(filename) 

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.

Examples

VBScript


set sessionobj = GetSession 

' Get the query from file "C:\queries\myQuery.txt" 
set queryDefObj = sessionObj.OpenQueryDef("C:\queries\myQuery.txt") 

Perl


sessionObj = $entity->GetSession();



#Get the query from file "C:\queries\myQuery.txt" 

$queryDefObj = $sessionObj->OpenQueryDef("C:\queries\myQuery.txt");