<div class="content"><p>The ImportNtmsDatabase method imports the state of the
server at the next server restart.</p><dl>
<dd>
<div><pre> HRESULT ImportNtmsDatabase();
</pre></div>
</dd></dl><p>This method has no parameters.</p><table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000000</p>
  <p>S_OK</p>
  </td>
  <td>
  <p>The call was successful.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x80070005</p>
  <p>ERROR_ACCESS_DENIED</p>
  </td>
  <td>
  <p>Access to object was denied. For more information
  regarding object, see section <a href="403095af-f4d3-46b9-85d7-3e2310e2bbdd" data-linktype="relative-path">3.2.5.2</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x800708CA</p>
  <p>ERROR_NOT_CONNECTED</p>
  </td>
  <td>
  <p>Unable to connect to the server.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x800710D9</p>
  <p>ERROR_DATABASE_FAILURE</p>
  </td>
  <td>
  <p>The database query or update failed.</p>
  </td>
 </tr></tbody></table><p>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.</p><p>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).</p><p>This database is saved by the <a href="fd45a1a6-c342-498f-ab81-a66f859f7093" data-linktype="relative-path">INtmsSession1::ExportNtmsDatabase</a>
method.<a id="Appendix_A_Target_77"></a><a aria-label="Product behavior note 77" href="7184b376-4ee3-4482-b9c4-f87ff22b421f#Appendix_A_77" data-linktype="relative-path">&lt;77&gt;</a></p></div>