SetDatabaseType method

Sets the database type.

Syntax


C++
HRESULT SetDatabaseType( 
   ERUItemType
Type
)
Scripting languages
Object.SetDatabaseType(
   Type as ERUItemType)

Parameters


Type

Specifies what the new type of the database should be. There are three possible values:

  • erItemTypeDBProcess

  • erItemTypeDBPage

  • erItemTypeEntDB

However, there are restrictions as to which types of databases can be converted to which, as noted in the following table:

 

If the Type value is:

The current database type must be:

erItemTypeDbProcess

erItemTypeDBPage

erItemTypeDBPage

erItemTypeDBProcess or erItemTypeEntDB

erItemTypeEntDB

erItemTypeDBPage

 

In some cases, there may be data loss when you change a database type. For example, converting an enterprise database to a standalone database deletes all instances and summaries associated with the enterprise database.

Return value


C++

The return code.

Scripting languages

None.

 

Home

Applies to

IERUDatabase