ValidateQueryDefName
Description
Verifies that the specified query name and path information are correct. You can use this method to ensure that the given query (QueryDef object) name and path are valid in the workspace.
Note: There is no return value for this
method if the specified name and path are valid. The method throws an exception
if the QueryDef name or path is not valid. The method checks the name
for characters that are not valid and ensures that the query itself does not
already exist in the folder named by the path parameter. If the QueryDef path
is empty, there is not a complete or consistent validation.
Syntax
VBScript
workspace.ValidateQueryDefName
qdefName, qdefPath
Perl
$workspace->ValidateQueryDefName
(qdefName, qdefPath);
- Identifier
- Description
- workspace
- The Workspace object obtained from the current session.
- qdefName
- A String containing the name of the query.
- qdefPath
- A String containing the pathname of the folder containing the query.
- Return value
- None, if the specified name and path are valid.