short SaveQMFProc(BSTR OwnerAndName, BSTR Text, BSTR Comment, BOOLEAN Replace, BOOLEAN Share)
Description
This function saves a procedure at a database server.
Parameters
Name | Description |
---|---|
OwnerAndName | A string containing the owner and name, of the procedure 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 procedure. |
Comment | A string containing a comment that you want to save with the procedure. If there is no comment, pass this parameter as an empty string or NULL. |
Replace | Non-zero replaces an existing procedure with the same name. Zero aborts the operation if there is an existing procedure with the same name. |
Share | Non-zero shares the procedure with other users. Zero does not share the procedure 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