3.2.5.2.5.9 INtmsSession1::ImportNtmsDatabase (Opnum 11)
The ImportNtmsDatabase method imports the state of the server at the next server restart.
-
HRESULT ImportNtmsDatabase();
This method has no parameters.
Return value/code |
Description |
---|---|
0x00000000 S_OK |
The call was successful. |
0x80070005 ERROR_ACCESS_DENIED |
Access to object was denied. For more information regarding object, see section 3.2.5.2. |
0x800708CA ERROR_NOT_CONNECTED |
Unable to connect to the server. |
0x800710D9 ERROR_DATABASE_FAILURE |
The database query or update failed. |
The ImportNtmsDatabase method directs the server to import the content of the export directory into the database upon the next restart. When the server restarts, it MUST import the already saved database to its current database if the import is set.
Upon receiving this message, the server MUST verify that the client has the required access rights to the database. If the client does not have the required access rights, the server MUST return ERROR_ACCESS_DENIED (0x80070005).
This database is saved by the INtmsSession1::ExportNtmsDatabase method.<77>