short RegisterInInformationCatalog(BSTR OwnerAndName, short Type, BSTR TagFileName, BSTR CatalogName, BSTR UserID, BSTR Password)
Description
This function registers the specified QMF object with the DB2 Warehouse Manager Information Catalog. Registration can either be performed immediately, or a tag file can be created and imported into the Information Catalog later.
Parameters
Name | Description |
---|---|
OwnerAndName | A string containing the owner and name of the object that you want to register, in owner.name format. For example, John.Query2 |
Type |
The type of object that you want to register. Choose one of the following:
|
TagFileName | The name of the tag file to create, or an empty string to perform the registration immediately. |
CatalogName | The name of the Information Catalog in which to register the object, or an empty string to create a tag file to register the object later. This parameter must be an empty string if a a tag file name is specified. |
UserID | The user ID to use when connecting to the Information Catalog catalog. The default value is the user ID used to connect to the current server. This parameter is not used if a tag file name is specified. |
Password | The password to use when connecting to the Information Catalog catalog. The default value is the password used to connect to the current server. This parameter is not used if a tag file name is specified. |
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