GetQMFQueryText()


" "

BSTR GetQMFQueryText(BSTR OwnerAndName)

Description

This function retrieves the SQL text stored in the specified query.

Parameters

Name Description
OwnerAndName A string containing the owner and name of the query that you want to retrieve, in owner.name format. For example, John.Query2

Return Value

A string containing the text for the query that was retrieved, or NULL if the query could not be retrieved. If the return value is NULL, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.