SaveQMFQuery()


" "

short SaveQMFQuery(BSTR OwnerAndName, BSTR Text, BSTR Comment, BOOLEAN Replace, BOOLEAN Share)

Description

This function saves a query at a database server.

Parameters

Name Description
OwnerAndName A string containing the owner and name, of the query that you want to save, in owner.name format. For example, John.Proc2
Text A string containing the text that you want to save in the query.
Comment A string containing a comment that you want to save with the query. If there is no comment, pass this parameter as an empty string or NULL.
Replace Non-zero replaces an existing query with the same name. Zero aborts the operation if there is an existing query with the same name.
Share Non-zero shares the query with other users. Zero does not share the query with other users.

Return Value

Return value will be zero if successful or non-zero if unsucessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.

Related Tasks

GetQMFObjectInfo()
GetQMFObjectInfoEx()
GetQMFObjectList()
GetQMFObjectListEx()
GetQMFProcText()
SaveQMFProc()