GetQueryVerb()


" "

BSTR GetQueryVerb(long QueryID)

Description

This function returns a string containing the SQL verb used in the query.

Parameters

Name Description
QueryID

The ID of the query, as returned from InitializeQuery().

Note:
The query verb is not available for static SQL statements. For query IDs returned from InitializeStaticQuery(), GetQueryVerb() returns an empty string.

Return Value

If the query is successful, a string containing the SQL verb is returned. If the query is unsuccessful, NULL is returned. If the return value is NULL, you can call GetLastErrorString() or GetLastErrorType() to get additional error information.