GetCatalogID()


" "

short GetCatalogID(BSTR bstrServerName)

Description

This function returns the internal identifier of the QMF catalog that has been defined for the specified server.

Parameters

Name Description
bstrServerName The name of the server for which the catalog server internal identifier 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 catalog ID value if successful or a negative (-1) if an error occurs.

If the return value is negative one (-1), you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.

Related Tasks

GetServerList()
GetServerListEx())