How do I specify in which database my schema should be created? When using multiple databases in Drupal 7, how can I specify that a table is to be created in a different database on a different server?  

By default, when you install a module, Drupal assumes that everything in hook_schema() should be installed in the default database. Is there a way to specify that a table should be created on a different database, or is there some kind of manual workaround I can use?
I have achieved this with the information provided by Berdir. My code looks like:

&lt;?php
function mymodule_schema_otherdb() {
  $schema['mytable'] = array(
    'description' =&gt; 'My table description',
    'fields' =&gt; array(
      'myfield' =&gt; array(
        'description' =&gt; 'My field description',
        'type' =&gt; 'serial',
        'size' =&gt; 'medium',
        'not null' =&gt; TRUE,
        'unsigned' =&gt; TRUE,
      ),
    ),
    'primary key' =&gt; array('myfield'),
  );
  return $schema;
}

function mymodule_install() {
  db_set_active('otherdb');
  $schema = mymodule_schema_otherdb();
  foreach ($schema as $name =&gt; $table) {
    db_create_table($name, $table);
  }
  db_set_active();
}

function mymodule_uninstall() {
  db_set_active('otherdb');
  $schema = mymodule_schema_otherdb();
  foreach ($schema as $name =&gt; $table) {
    db_drop_table($name);
  }
  db_set_active();
}