<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.schemaDatabase.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.schemaDatabase</api:function-name><api:suggest>xdmp.schemadatabase</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>schemadatabase</api:suggest><api:function-link mode="xquery" fullname="xdmp:schema-database">/apidoc/8.0/xdmp:schema-database.xml</api:function-link><api:function mode="javascript" name="schemaDatabase" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.schemaDatabase"><api:summary>
  Returns the database ID of the schema database
  associated with the current database.
</api:summary><api:params><api:param name="database-id" type="xs:unsignedLong" optional="true"><api:param-description>
    A database ID. Defaults to the current database.
  </api:param-description><api:param-name>database-id</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>String</api:return><api:usage>To run queries against the schema database, you can specify
  the <code xmlns="http://www.w3.org/1999/xhtml">xdmp:schema-database()</code> function as the second
  parameter to <code xmlns="http://www.w3.org/1999/xhtml">xdmp:eval-in()</code>. </api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.schemaDatabase();
=&gt; 15467547981724877000
</pre></api:example></api:function></api:function-page>