### Schema support

JReport Enterprise Server supports DBMS schemas in order to work well with DBMSs that are currently supported by JReport Enterprise Server and that support schemas. Those DBMSs include Oracle, DB2, SQL Server, and Sybase. You can specify schema information either in the dbconfig.xml file using the `<schema></schema>` tags, or in dsInfo by adding the attribute schema=schema_name.

Note: For Sybase, the schema name must use capital letters, for example, ABCDE.

In dbconfig.xml

Add the `<schema></schema>` tags in the dbconfig.xml file as follows:

    ...
    <database name="systables">
    <driver classpath="...">jdbc_driver_name</driver>
    <url>jdbc_url</url>
    <user>jdbc_user</user>
    <password>jdbc_password</password>
    <schema>schema_name</schema>
    </database>
    ...

In dsInfo

Since the dsInfo supports JNDI and JDBC protocols, you can add the attribute schema=schema_name in the JNDI or JDBC statement. The JNDI approach is only available when deploying JReport Enterprise Server into a Java Application Server, not when it is running in standalone mode.

- jdbc://[<jdbc-user>:<jdbc-password>@]<jdbc-url>[#<attribute-name=attribute-value>,]

  For example:

  `jdbc://user:password@jdbc:odbc:jreport-systables#driver=sun.jdbc.odbc.JdbcOdbcDriver,schema=db2admin`

- jndi://[<jdbc-user>:<jdbc-password>@]<datasource-name>[#<attri-name=attri-value>,]

  For example:

  `jndi://jdbc/jreport-systables#schema=db2admin`