InitializeStaticQuery()


" "

long InitializeStaticQuery(BSTR CollectionName, BSTR PackageName, BSTR ConsistencyToken, 
short SectionNumber)

Description

This function specifies the section of a package that you want to run as a static query.

Parameters

Name Description
CollectionName The name of a previously-bound collection.
PackageName The name of a previously-bound package.
ConsistencyToken The token used by the above named collection and package.
SectionNumber The section number of the statement within the collection and package that you want to run.

Return Value

If successful, the ID of the query. If unsuccessful, a negative one (-1). You can call GetLastErrorString() or GetLastErrorType() to get additional error information. Use this value in all interface calls that require the QueryID parameter.