BSTR GetCatalogServerName(BSTR bstrServerName)
Description
This function returns the name of the QMF catalog server that has been defined for the specified server. The name may be the same as the name of the server itself.
Parameters
Name | Description |
---|---|
bstrServerName | The name of the server for which catalog server name should be returned. This name must match one of the names defined in the current SDF. Use the GetServerList() or GetServerListEx()) functions to retrieve a list of valid server names. |
|
|
Return Value
The return value will be the name of the catalog server if successful, or an empty string if an error occurs.
If the return value is an empty string, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.
Related Tasks