<div class="content" name="ExportNtmsDatabase" uuid="fd45a1a6-c342-498f-ab81-a66f859f7093"><p>The ExportNtmsDatabase method exports the state of the
server.</p><dl>
<dd>
<div><pre> HRESULT ExportNtmsDatabase();
</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>0x00000000 S_OK</td>
  <td>The call was successful.</td>
 </tr><tr>
  <td>0x80070005 ERROR_ACCESS_DENIED</td>
  <td>Access to object was denied. For more information regarding object, see section 3.2.5.2.</td>
 </tr><tr>
  <td>0x80070020 ERROR_SHARING_VIOLATION</td>
  <td>One of the files that needs to be written to is open.</td>
 </tr><tr>
  <td>0x800708CA ERROR_NOT_CONNECTED</td>
  <td>Unable to connect to the server.</td>
 </tr><tr>
  <td>0x800710D9 ERROR_DATABASE_FAILURE</td>
  <td>The database query or update failed.</td>
 </tr></tbody></table><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). If the client has the required access rights, ExportNtmsDatabase
creates a consistent set of database files in the export directory under the
RSM database directory. Any existing files in the export directory are
overwritten by this method.<a id="Appendix_A_Target_78"></a><a aria-label="Product behavior note 78" href="7184b376-4ee3-4482-b9c4-f87ff22b421f#Appendix_A_78" data-linktype="relative-path">&lt;78&gt;</a></p></div>