<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dacm</id>
	<title>Apache OpenOffice Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dacm"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Dacm"/>
	<updated>2026-11-26T07:37:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236631</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236631"/>
		<updated>2015-08-08T20:55:21Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What are my database options? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source can be selected in the Mail Merge Wizard within Writer, allowing the creation of mailing labels or form-letters. You can also add dynamic tables or query-views to a Writer document or Calc spreadsheet utilizing registered data-sources. Data analysis becomes possible with Calc through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate stored queries or views, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And while Base is typically used to create forms in the *Office environment, note that all Form elements (form &amp;#039;controls&amp;#039; such as table grids, list boxes, navigation bar, etc) are available in Writer and Calc, complete with access to all registered data-sources. In fact, a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, Base creates an &amp;quot;embedded database&amp;quot; by default utilizing the bundled HSQLDB engine. In this configuration Base collects the user-files generated by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. The back-end database functionality is provided exclusively by the specific database [https://en.wikipedia.org/wiki/Database_connection connection driver] and/or [https://en.wikipedia.org/wiki/Database DBMS]. This distinction is admittedly blurred by the seamless nature of the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
While it could be said that *Office includes a database (or two), the Base component does not qualify as a database in-and-of-itself.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since this connection method allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236630</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236630"/>
		<updated>2015-08-08T20:52:15Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source can be selected in the Mail Merge Wizard within Writer, allowing the creation of mailing labels or form-letters. You can also add dynamic tables or query-views to a Writer document or Calc spreadsheet utilizing registered data-sources. Data analysis becomes possible with Calc through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate stored queries or views, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And while Base is typically used to create forms in the *Office environment, note that all Form elements (form &amp;#039;controls&amp;#039; such as table grids, list boxes, navigation bar, etc) are available in Writer and Calc, complete with access to all registered data-sources. In fact, a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, Base creates an &amp;quot;embedded database&amp;quot; by default utilizing the bundled HSQLDB engine. In this configuration Base collects the user-files generated by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. The back-end database functionality is provided exclusively by the specific database [https://en.wikipedia.org/wiki/Database_connection connection driver] and/or [https://en.wikipedia.org/wiki/Database DBMS]. This distinction is admittedly blurred by the seamless nature of the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
While it could be said that *Office includes a database (or two), the Base component does not qualify as a database in-and-of-itself.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236629</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236629"/>
		<updated>2015-08-08T20:47:18Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source can be selected in the Mail Merge Wizard within Writer, allowing the creation of mailing labels or form-letters. You can also add dynamic tables or query-views to a Writer document or Calc spreadsheet utilizing registered data-sources. Data analysis becomes possible with Calc through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate stored queries or views, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And while Base is typically used to create forms in the *Office environment, note that all Form elements (form &amp;#039;controls&amp;#039; such as table grids, list boxes, navigation bar, etc) are available in Writer and Calc, complete with access to all registered data-sources. In fact, a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, Base creates an &amp;quot;embedded database&amp;quot; by default utilizing the bundled HSQLDB engine. In this configuration Base collects the user-files generated by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. The back-end database functionality is provided exclusively by the specific database [https://en.wikipedia.org/wiki/Database_connection connection driver] and/or [https://en.wikipedia.org/wiki/Database DBMS]. This distinction is admittedly blurred by the seamless nature of the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
So while it could be said that *Office includes a database (or two), the Base component does not qualify as a database in-and-of-itself.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236628</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236628"/>
		<updated>2015-08-08T20:38:09Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source can be selected in the Mail Merge Wizard within Writer, allowing the creation of mailing labels or form-letters. You can also add dynamic tables or query-views to a Writer document or Calc spreadsheet utilizing registered data-sources. Data analysis becomes possible with Calc through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate stored queries or views, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And while Base is typically used to create forms in the *Office environment, note that all Form elements (form &amp;#039;controls&amp;#039; such as table grids, list boxes, navigation bar, etc) are available in Writer and Calc, complete with access to all registered data-sources. In fact, a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, Base creates an &amp;quot;embedded database&amp;quot; by default utilizing the bundled HSQLDB engine. In this configuration Base collects the user-files generated by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. The back-end database functionality is provided exclusively by the specific database [https://en.wikipedia.org/wiki/Database_connection connection driver] and/or [https://en.wikipedia.org/wiki/Database DBMS]. This distinction is admittedly blurred by the seamless nature of the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236627</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236627"/>
		<updated>2015-08-08T20:06:58Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source can be selected in the Mail Merge Wizard within Writer, allowing the creation of mailing labels or form-letters. You can also add dynamic tables or query-views to a Writer document or Calc spreadsheet utilizing registered data-sources. Data analysis becomes possible with Calc through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate stored queries or views, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And while Base is typically used to create forms in the *Office environment, note that all Form elements (form &amp;#039;controls&amp;#039; such as table grids, list boxes, navigation bar, etc) are available in Writer and Calc, complete with access to all registered data-sources. In fact, a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; utilizing the bundled HSQLDB engine. In this configuration Base collects the user-files generated by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236626</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236626"/>
		<updated>2015-08-08T20:03:59Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source can be selected in the Mail Merge Wizard within Writer, allowing the creation of mailing labels or form-letters. You can also add dynamic tables or query-views to a Writer document or Calc spreadsheet utilizing registered data-sources. Data analysis becomes possible with Calc through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate stored queries or views, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And while Base is typically used to create forms in the *Office environment, note that all Form elements (form &amp;#039;controls&amp;#039; such as table grids, list boxes, navigation bar, etc) are available in Writer and Calc, complete with access to all registered data-sources. In fact, a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality as well. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; utilizing the bundled HSQLDB engine. In this configuration Base collects the user-files generated by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236625</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236625"/>
		<updated>2015-08-08T19:48:08Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source can be used in the Mail Merge Wizard within Writer, allowing the creation of mailing labels or form-letters from a table or query of names and addresses in a data-source. You can also add dynamic tables or query-views to a Writer document or Calc spreadsheet from various data-sources. Data analysis becomes possible with Calc features including charts and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate stored queries or views, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And while Base is typically used to create forms in the *Office environment, note that all Form elements (&amp;#039;controls&amp;#039; such as table grids, list boxes, navigation bar, etc) are available in Writer and Calc, complete with registered data-source access. In fact, a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236624</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236624"/>
		<updated>2015-08-08T19:28:39Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source can be used in the Mail Merge Wizard in Writer, allowing the creation of mailing labels or form-letters from a table or query of names and addresses in a data-source. Or, you can add dynamic tables or query-views to a Writer document or Calc spreadsheet from various data-sources. Calc can further be used to analyze data from one or more data-sources through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate stored queries, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And note that forms are not unique to Base, because the same Form controls (table grids, list boxes, navigation bar, etc) are also available in Writer and Calc. In fact, a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236623</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236623"/>
		<updated>2015-08-08T19:19:54Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source becomes available in the Mail Merge Wizard (Writer) allowing the creation of mailing labels or form-letters from a table or query of names and addresses in a data-source. Or, you can add dynamic tables or query-views to a Writer document or Calc spreadsheet from various data-sources. Calc can further be used to analyze data from one or more data-sources through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). And note that Forms are not unique to Base, because the same Form controls (table grid, list boxes, navigation bar, etc) are available in Writer and Calc. In fact, forms are not unique to Base; a Base form can be exported as [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=40493 standalone] Writer document. &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236622</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236622"/>
		<updated>2015-08-08T18:47:29Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides [http://www.techrepublic.com/blog/10-things/10-plus-reasons-to-split-an-access-database/ flexibility] and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source becomes available in the Mail Merge Wizard (Writer) allowing the creation of mailing labels or form-letters from a table or query of names and addresses in a data-source. Or, you can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from one or more data-sources through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236621</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236621"/>
		<updated>2015-08-08T18:43:16Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides flexibility and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources including tabular spreadsheets, address books, dBase tables, or relational databases. In this primary role, Base is used to create the necessary connection file (ODB), which can then be &amp;#039;registered&amp;#039; in *Office for universal data-access from Writer, Calc, etc. For instance, a registered data-source becomes available in the Mail Merge Wizard (Writer) allowing the creation of mailing labels or form-letters from a table or query of names and addresses in a data-source. Or, you can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from one or more data-sources through charting and pivot tables (Data Pilots). Base, itself, can be used to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements in Base are provided through various wizards or visual designers including: a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236463</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236463"/>
		<updated>2015-07-06T18:39:35Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides flexibility and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources such as a spreadsheet, address book, dBase table, or relational database. In this primary role, Base is simply used to create the necessary connection file (ODB) which can then be registered in *Office for universal data-access from Writer, Calc, etc. For instance, you can use Writer&amp;#039;s Mail Merge Wizard to create mailing labels or form-letters from a data-source. You can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from data-sources through charting and pivot tables (Data Pilots). But once connected, you can also use Base to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236462</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236462"/>
		<updated>2015-07-06T18:38:10Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides flexibility and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources such as a spreadsheet, address book, dBase table, or relational database. In this primary role, Base is simply used to create the necessary connection file (ODB) which can then be registered in *Office for universal access to the data-source from Writer, Calc, etc. For instance, you can use Writer&amp;#039;s Mail Merge Wizard to create mailing labels or form-letters from a data-source. You can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from data-sources through charting and pivot tables (Data Pilots). But once connected, you can also use Base to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236461</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236461"/>
		<updated>2015-07-06T18:36:18Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model provides flexibility and the necessary [http://en.wikipedia.org/wiki/ACID#Durability data-durability]. It involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (such as a spreadsheet, address book, dBase table, or relational database). In this primary role, Base is simply used to create the necessary connection file (ODB) which can then be registered in *Office for universal access to the data-source from Writer, Calc, etc. For instance, you can use Writer&amp;#039;s Mail Merge Wizard to create mailing labels or form-letters from a data-source. You can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from data-sources through charting and pivot tables (Data Pilots). But once connected, you can also use Base to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236460</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236460"/>
		<updated>2015-07-06T18:32:50Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model has proven necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (such as a spreadsheet, address book, dBase table, or relational database). In this primary role, Base is simply used to create the necessary connection file (ODB) which can then be registered in *Office for universal access to the data-source from Writer, Calc, etc. For instance, you can use Writer&amp;#039;s Mail Merge Wizard to create mailing labels or form-letters from a data-source. You can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from data-sources through charting and pivot tables (Data Pilots). But once connected, you can also use Base to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects the user-data files produced by both Base and HSQLDB, and stores these files within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain files generated by the database engine (HSQLDB), or by Writer (Forms and Reports), or by other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236459</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236459"/>
		<updated>2015-07-06T18:27:55Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model has proven necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (such as a spreadsheet, address book, dBase table, or relational database). In this primary role, Base is simply used to create the necessary connection file (ODB) which can then be registered in *Office for universal access to the data-source from Writer, Calc, etc. For instance, you can use Writer&amp;#039;s Mail Merge Wizard to create mailing labels or form-letters from a data-source. You can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from data-sources through charting and pivot tables (Data Pilots). But once connected, you can also use Base to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine). In this configuration Base collects and stores the user-data files produced by both Base and HSQLDB within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In reality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain user-data files generated by the database engine (HSQLDB) or by Writer (Forms and Reports) or other components such as the Query Builder (stored-queries) or IDE (macros). In other words, various user-files are commonly &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236458</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236458"/>
		<updated>2015-07-06T18:23:29Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model has proven necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (such as a spreadsheet, address book, dBase table, or relational database). In this primary role, Base is simply used to create the necessary connection file (ODB) which can then be registered in *Office for universal access to the data-source from Writer, Calc, etc. For instance, you can use Writer&amp;#039;s Mail Merge Wizard to create mailing labels or form-letters from a data-source. You can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from data-sources through charting and pivot tables (Data Pilots). But once connected, you can also use Base to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that *Office is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine), meaning Base collects and stores the user-data produced by both front-end and back-end applications within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain user-data files generated by the database engine (HSQLDB) or by Writer (Forms and Reports) or other components such as queries or macros. In other words, various user-files may be &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236457</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236457"/>
		<updated>2015-07-06T18:20:40Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model has proven necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect *Office [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (such as a spreadsheet, address book, dBase table, or relational database). In this primary role, Base is simply used to create the necessary connection file (ODB) which can then be registered in *Office for universal access to the data-source from Writer, Calc, etc. For instance, you can use Writer&amp;#039;s Mail Merge Wizard to create mailing labels or form-letters from a data-source. You can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from data-sources through charting and pivot tables (Data Pilots). But once connected, you can also use Base to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine), meaning Base collects and stores the user-data produced by both front-end and back-end applications within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain user-data files generated by the database engine (HSQLDB) or by Writer (Forms and Reports) or other components such as queries or macros. In other words, various user-files may be &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236456</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236456"/>
		<updated>2015-07-06T18:19:07Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often incorporate separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model has proven necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (such as a spreadsheet, address book, dBase table, or relational database). In this primary role, Base is simply used to create the necessary connection file (ODB) which can then be registered in *Office for universal access to the data-source from Writer, Calc, etc. For instance, you can use Writer&amp;#039;s Mail Merge Wizard to create mailing labels or form-letters from a data-source. You can add dynamic tables or query-views to a Writer document from various data-sources. And Calc can be used to analyze data from data-sources through charting and pivot tables (Data Pilots). But once connected, you can also use Base to view and manipulate the data, generate and view queries, create forms, reports, and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine), meaning Base collects and stores the user-data produced by both front-end and back-end applications within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain user-data files generated by the database engine (HSQLDB) or by Writer (Forms and Reports) or other components such as queries or macros. In other words, various user-files may be &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236455</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236455"/>
		<updated>2015-07-05T08:31:04Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model is necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Once connected, Base can also provide graphical table-views, stored-queries, embedded forms, reports and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine), meaning Base combines both front-end and back-end user-data within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain user-data files generated by the database engine (HSQLDB) or by Writer (Forms and Reports); in other words, various user-files may be &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236454</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236454"/>
		<updated>2015-07-05T08:26:53Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model is necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). In our case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Once connected, Base can also provides graphical table-views, stored-queries, embedded forms, reports and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine), meaning Base combines both front-end and back-end user-data within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain user-data files generated by the database engine (HSQLDB) or by Writer (Forms and Reports); in other words, various user-files may be &amp;quot;embedded&amp;quot; inside a single Base ODB file (zip-container file).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236453</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236453"/>
		<updated>2015-07-05T08:02:04Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model is necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). So Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Once connected, Base can also provides graphical table-views, queries, forms, reports and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base creates an &amp;quot;embedded database&amp;quot; (utilizing the bundled HSQLDB engine), meaning Base combines both front-end and back-end user-data within a single ODB file. This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base-generated output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So your ODB file might contain back-end database files or Writer documents (Forms and Reports); these user-files are &amp;quot;embedded&amp;quot; inside a Base ODB (zip-container) file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236366</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236366"/>
		<updated>2015-05-29T18:36:21Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* So why should I avoid &amp;#039;embedded databases&amp;#039;? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model is necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). So Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Once connected, Base can also provides graphical table-views, queries, forms, reports and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as user-files generated and maintained by the bundled HSQLDB engine. The contents of this (.odb) file are automatically unzipped to a temporary folder upon opening the (.odb) file in *Office. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by *Office. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into *Office. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are managed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236086</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=236086"/>
		<updated>2015-04-30T00:50:57Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* So why should I avoid &amp;#039;embedded databases&amp;#039;? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model is necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). So Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Once connected, Base can also provides graphical table-views, queries, forms, reports and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as data-files generated by the bundled HSQLDB engine. The contents of this (.odb) file are unzipped to a temporary folder upon opening the (.odb) file in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, beyond the capabilities of the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235932</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235932"/>
		<updated>2015-03-17T18:21:20Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. Base is no exception. This two-tiered software model is necessary to provide proper [http://en.wikipedia.org/wiki/ACID#Durability data-durability] which involves separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical user-interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). So Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Once connected, Base can also provides graphical table-views, queries, forms, reports and macros. These graphical elements are provided through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235830</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235830"/>
		<updated>2015-01-25T05:33:13Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What are my database options? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model is necessary to provide proper data-durability while separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=23260 HSQLDB can also be used to establish read/write connectivity with delimited-text files] (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235829</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235829"/>
		<updated>2015-01-25T05:29:22Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What are my database options? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model is necessary to provide proper data-durability while separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access to one or more flat-file tables, which can be created through Base (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But unless you&amp;#039;re working in a Java-restricted environment, the bundled HSQLDB driver can also enhance flat-file data access. Of course, HSQLDB can be used to create both flat-file and relational database tables. But did you know that HSQLDB can also be used to establish read/write connectivity with delimited-text files (such as CSV)? So HSQLDB becomes the best choice with Base even when you&amp;#039;re simply connecting to tabular data (CSV delimited data) such as a speadsheet, since the connection allows both read &amp;amp; write capabilities. So HSQLDB subsumes the function of the Text and dBase drivers with Base (while making child&amp;#039;s-play of SQLite).&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235822</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235822"/>
		<updated>2015-01-21T19:50:47Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model is necessary to provide proper data-durability while separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite.&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://www.mediafire.com/download/xurljygoojwoocs/mydb.file.odb  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235821</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235821"/>
		<updated>2015-01-21T19:45:19Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model is necessary to provide proper data-durability while separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite.&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [https://forum.openoffice.org/en/forum/download/file.php?id=22988 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235717</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235717"/>
		<updated>2014-11-01T05:58:36Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What are my database options? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model is necessary to provide proper data-durability while separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99% solution) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature because it provides access to corporate data, or other existing databases. Otherwise, these full-scale RDBMS solutions are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill for new projects with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite.&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235164</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235164"/>
		<updated>2014-05-20T22:47:00Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model is necessary to provide proper data-durability while separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical interface] (GUI front-end) from the [http://en.wikipedia.org/wiki/Database_engine core database functionality] (database engine back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite.&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235163</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=235163"/>
		<updated>2014-05-20T22:45:36Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications often involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model is necessary to provide proper data-durability while separating the [http://en.wikipedia.org/wiki/Graphical_user_interface graphical interface] (front-end) from the http://en.wikipedia.org/wiki/Database_engine core database functionality] (back-end). Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite.&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234713</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234713"/>
		<updated>2014-04-29T07:59:07Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What are my database options? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only &amp;quot;Text&amp;quot; drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite.&lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234712</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234712"/>
		<updated>2014-04-29T07:51:02Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What can Base do for me? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a built-in query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234711</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234711"/>
		<updated>2014-04-29T07:47:35Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What can Base do for me? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. The Base Query Parser also adds &amp;#039;parameter query&amp;#039; functionality, which can be used to prompt the user for database search criteria. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** query parser adds [https://wiki.documentfoundation.org/Faq/Base/115 parameter query] support&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234710</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234710"/>
		<updated>2014-04-29T07:45:09Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What can Base do for me? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. The Base Query Parser also adds &amp;#039;parameter query&amp;#039; functionality, which can be used to prompt the user for database search criteria. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** query parser adds parameter (variable) query support&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234709</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234709"/>
		<updated>2014-04-29T07:38:51Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Base */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No. A full installation of *Office including Writer is necessary to access all available functions of Base. &lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234708</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234708"/>
		<updated>2014-04-29T07:37:06Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* What can Base do for me (overview)? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234707</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234707"/>
		<updated>2014-04-29T07:36:29Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Base */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
&lt;br /&gt;
=== What can Base do for me (overview)? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234706</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234706"/>
		<updated>2014-04-29T07:31:59Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Base */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
=== Can I install Base alone? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234705</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234705"/>
		<updated>2014-04-29T07:29:30Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
=== What are my database options? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are [https://forum.openoffice.org/en/forum/viewtopic.php?p=278451#p278451 overkill with Base] due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234704</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234704"/>
		<updated>2014-04-29T07:23:55Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* NOTE: Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are overkill with Base due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234703</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234703"/>
		<updated>2014-04-29T07:22:35Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file containing a database is comprised entirely of Base output. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by multiple applications. So you might find back-end database files or Writer documents (Forms and Reports) embedded inside a Base ODB file.&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* NOTE: Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are overkill with Base due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234702</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234702"/>
		<updated>2014-04-29T07:17:34Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. So a typical database application might be comprised of a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) seamlessly combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. In this case, Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through various wizards or visual designers in Base, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is providing the back-end database functionality. But that&amp;#039;s not actually the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. &lt;br /&gt;
&lt;br /&gt;
Furthermore, by default Base is combined with HSQLDB in a unique file configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; This really confuses the issue because we naturally assume that a Base ODB file containing a database is comprised entirely of Base products. In actuality, a Base [http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__440364_826425813 ODB file] is little more than a [http://en.wikipedia.org/wiki/Zip_(file_format) zip-archive] which may contain files produced by any number of applications (in theory). So a Base ODB file may contain back-end database files, in addition to Writer documents (Forms and Reports).&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with OpenOffice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* NOTE: Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base, the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if you outgrow the bundled version, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is fully sufficient (99.9%) with Base -- because it&amp;#039;s virtually impossible to exceed the capabilities of this full-featured SQL engine within the context of a Base desktop/LAN project. HSQLDB 2.x features include: modern SQL support, multi-user security/optimizations, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more. So it&amp;#039;s probably best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. &lt;br /&gt;
&lt;br /&gt;
* Of course, Base can also be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. This is a critical feature for existing database access, but otherwise, these full-scale alternatives are overkill with Base due to more complex setup and daily maintenance requirements, while adding little -- if anything -- to a Base-centric project. &lt;br /&gt;
&lt;br /&gt;
* At the other end of the spectrum are those who simply maintain their data in tabular format using a spreadsheet. No problem. Base connects seamlessly to data in popular spreadsheet or delimited-text formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. The dBase driver takes it to the next level with read-write access and table creation through Base, while connecting to any number of dBase files (tables) within a single folder (ensure write-privileges to the dBase folder/files). These basic drivers also supports some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary query] capabilities through Base, thereby providing a flat-file database capability quite similar to MS Works. This may be sufficient for many Base users, particularly as SubForm-links may be used to create ad-hoc relationships between tables. But keep in mind that HSQLDB can be used to create flat-file or relational tables, as well as, to establish read-write connectivity with delimited-text files (such as CSV). So unless you&amp;#039;re working in a Java-restricted environment, HSQLDB subsumes the function of the Text and dBase drivers with Base while making child&amp;#039;s-play of SQLite. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234694</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234694"/>
		<updated>2014-04-26T09:02:56Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and [http://en.wikipedia.org/wiki/Back-end_database back-end] components. This two-tiered software model provides flexibility while ensuring data-durability. In a typical database application, a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) is combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created through the Base GUI using various wizards or visual designers, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that Base is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is actually providing back-end database functionality. But that&amp;#039;s not the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. By default, Base is combined with HSQLDB in a special configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; Base also supports standard [http://en.wikipedia.org/wiki/Jdbc JDBC] and [http://en.wikipedia.org/wiki/ODBC ODBC] drivers as provided by all the popular RDBMS engines including: HSQLDB, H2, PostgreSQL, MySQL, Firebird, Oracle, MS SQL Server, etc. &lt;br /&gt;
&lt;br /&gt;
* NOTE: Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base (to create and manage the database), the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if that happens, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is a complete (99.9%) solution with Base, because it&amp;#039;s virtually impossible to exceed the capabilities of this modern SQL engine within the context of a Base project (to include modern SQL commands, role-based security, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more). In fact, it&amp;#039;s best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. Base can certainly be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. But these are well beyond the scope of Base, in general, with more complex setup and daily maintenance issues, while adding little, if anything to a Base-centric project. Having said all that, it is recognized that many novices simply maintain their data in tabular format within a spreadsheet. So as previously mentioned, Base can connect to granular data in popular spreadsheet formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. A dBase flat-file database is similar to a spreadsheet, in concept, except that the provided dBase driver can connect to any number of dBase files (tables) within a single folder, while adding some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudamentary query] capabilities the mix through Base (requires write-privileges to the dBase folder/files). Since this dBase driver can be used with Base to seamlessly create new dBase tables with ease, this provides a database capability quite similar to MS Works. This may be sufficient for many Base users, but keep in mind that HSQLDB can be used to create flat-file or relational tables, as necessary. So unless you&amp;#039;re working in a Java-less environment, HSQLDB duplicates the function of the dBase driver with Base while offering much greater function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234692</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234692"/>
		<updated>2014-04-26T08:47:21Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and back-end components. This two-tiered software model provides flexibility while ensuring data-durability. In a typical database application, a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) is combined with a proven back-end [http://en.wikipedia.org/wiki/Database_engine database engine]. Base is merely a front-end, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various data-sources (databases). In its primary role, Base is used to generate a connection file (.odb) which in-turn provides seamless data-source access from various office documents including Writer Forms, Mail-merge, or Calc Spreadsheets (including [http://openoffice.blogs.com/openoffice/2006/11/data_pilots_in_.html Data Pilot / Pivot Tables]). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created with the Base GUI through various wizards or visual designers, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is actually providing the database functionality. But that&amp;#039;s not the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. By default, Base is combined with HSQLDB in a special configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; Base also supports standard [http://en.wikipedia.org/wiki/Jdbc JDBC] and [http://en.wikipedia.org/wiki/ODBC ODBC] drivers as provided by all the popular RDBMS engines including: HSQLDB, H2, PostgreSQL, MySQL, Firebird, Oracle, MS SQL Server, etc. &lt;br /&gt;
&lt;br /&gt;
* NOTE: Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base (to create and manage the database), the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if that happens, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is a complete (99.9%) solution with Base, because it&amp;#039;s virtually impossible to exceed the capabilities of this modern SQL engine within the context of a Base project (to include modern SQL commands, role-based security, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more). In fact, it&amp;#039;s best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. Base can certainly be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. But these are well beyond the scope of Base, in general, with more complex setup and daily maintenance issues, while adding little, if anything to a Base-centric project. Having said all that, it is recognized that many novices simply maintain their data in tabular format within a spreadsheet. So as previously mentioned, Base can connect to granular data in popular spreadsheet formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. A dBase flat-file database is similar to a spreadsheet, in concept, except that the provided dBase driver can connect to any number of dBase files (tables) within a single folder, while adding some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudamentary query] capabilities the mix through Base (requires write-privileges to the dBase folder/files). Since this dBase driver can be used with Base to seamlessly create new dBase tables with ease, this provides a database capability quite similar to MS Works. This may be sufficient for many Base users, but keep in mind that HSQLDB can be used to create flat-file or relational tables, as necessary. So unless you&amp;#039;re working in a Java-less environment, HSQLDB duplicates the function of the dBase driver with Base while offering much greater function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234691</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234691"/>
		<updated>2014-04-26T08:38:10Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and back-end components. This two-tiered software model provides flexibility while ensuring data-durability. In a typical database application, a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) is combined with a back-end [http://en.wikipedia.org/wiki/Database_engine database engine] with proven reliability. Base is merely a front-end GUI, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various databases (data sources). In its primary role, Base is used to generate a connection file (.odb) which in-turn provides seamless database access from various office documents including Writer Forms, Mail-merge, or Calc Spreadsheets (including [http://openoffice.blogs.com/openoffice/2006/11/data_pilots_in_.html Data Pilot / Pivot Tables]). But that&amp;#039;s not all. Base also provides table-views, queries, forms, reports and macros. These front-end components are created in Base through various wizards or visual designers, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is actually providing the database functionality. But that&amp;#039;s not the case. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. By default, Base is combined with HSQLDB in a special configuration which combines both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; Base also supports standard [http://en.wikipedia.org/wiki/Jdbc JDBC] and [http://en.wikipedia.org/wiki/ODBC ODBC] drivers as provided by all the popular RDBMS engines including: HSQLDB, H2, PostgreSQL, MySQL, Firebird, Oracle, MS SQL Server, etc. &lt;br /&gt;
&lt;br /&gt;
* NOTE: Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base (to create and manage the database), the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if that happens, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is a complete (99.9%) solution with Base, because it&amp;#039;s virtually impossible to exceed the capabilities of this modern SQL engine within the context of a Base project (to include modern SQL commands, role-based security, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more). In fact, it&amp;#039;s best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. Base can certainly be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. But these are well beyond the scope of Base, in general, with more complex setup and daily maintenance issues, while adding little, if anything to a Base-centric project. Having said all that, it is recognized that many novices simply maintain their data in tabular format within a spreadsheet. So as previously mentioned, Base can connect to granular data in popular spreadsheet formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. A dBase flat-file database is similar to a spreadsheet, in concept, except that the provided dBase driver can connect to any number of dBase files (tables) within a single folder, while adding some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudamentary query] capabilities the mix through Base (requires write-privileges to the dBase folder/files). Since this dBase driver can be used with Base to seamlessly create new dBase tables with ease, this provides a database capability quite similar to MS Works. This may be sufficient for many Base users, but keep in mind that HSQLDB can be used to create flat-file or relational tables, as necessary. So unless you&amp;#039;re working in a Java-less environment, HSQLDB duplicates the function of the dBase driver with Base while offering much greater function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234690</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234690"/>
		<updated>2014-04-26T08:30:47Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and back-end components. This two-tiered software model provides flexibility while ensuring data-durability. In a typical database application, a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) is combined with a back-end [http://en.wikipedia.org/wiki/Database_engine database engine] with proven reliability. Base is merely a front-end GUI, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various databases (data sources). In its primary role, Base is used to generate a connection file (.odb) which in-turn provides seamless database access from various office documents including Writer Forms, Mail-merge, or Calc Spreadsheets (including [http://openoffice.blogs.com/openoffice/2006/11/data_pilots_in_.html Data Pilot / Pivot Tables]). But that&amp;#039;s not all. Base also provides table-views, query storage, forms, reports and macros. These front-end components are created in Base through various wizards or visual designers, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is also bundled with various &amp;quot;back-end&amp;quot; database options which connect seamlessly with Base. This can give the impression that Base, itself, is actually providing the database functionality. But that&amp;#039;s not technically accurate. Bundled database options include: spreadsheets ([http://en.wikipedia.org/wiki/Flat_file_database flat-file] datasets), dBase tables ([http://en.wikipedia.org/wiki/DBase DBF]), and a [http://en.wikipedia.org/wiki/Relational_database relational database] engine ([http://hsqldb.org/ HSQLDB]) featuring [http://en.wikipedia.org/wiki/SQL SQL]. By default, Base is combined with HSQLDB in a single file-container, combining both front-end and back-end user-data into a single ODB file, otherwise known as an &amp;quot;embedded database.&amp;quot; Base also supports standard [http://en.wikipedia.org/wiki/Jdbc JDBC] and [http://en.wikipedia.org/wiki/ODBC ODBC] drivers as provided by all the popular RDBMS engines including: HSQLDB, H2, PostgreSQL, MySQL, Firebird, Oracle, MS SQL Server, etc. &lt;br /&gt;
&lt;br /&gt;
* NOTE: Several database-connection [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers] are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base (to create and manage the database), the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if that happens, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is a complete (99.9%) solution with Base, because it&amp;#039;s virtually impossible to exceed the capabilities of this modern SQL engine within the context of a Base project (to include modern SQL commands, role-based security, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more). In fact, it&amp;#039;s best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. Base can certainly be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. But these are well beyond the scope of Base, in general, with more complex setup and daily maintenance issues, while adding little, if anything to a Base-centric project. Having said all that, it is recognized that many novices simply maintain their data in tabular format within a spreadsheet. So as previously mentioned, Base can connect to granular data in popular spreadsheet formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. A dBase flat-file database is similar to a spreadsheet, in concept, except that the provided dBase driver can connect to any number of dBase files (tables) within a single folder, while adding some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudamentary query] capabilities the mix through Base (requires write-privileges to the dBase folder/files). Since this dBase driver can be used with Base to seamlessly create new dBase tables with ease, this provides a database capability quite similar to MS Works. This may be sufficient for many Base users, but keep in mind that HSQLDB can be used to create flat-file or relational tables, as necessary. So unless you&amp;#039;re working in a Java-less environment, HSQLDB duplicates the function of the dBase driver with Base while offering much greater function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234689</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234689"/>
		<updated>2014-04-25T06:32:52Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and back-end components. This two-tiered software model provides flexibility and data-durability, by allowing a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) to provide user-interface elements, while leaving the heavy-lifting (data storage and retrieval) to specialized database [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers]&amp;#039;&amp;#039;&amp;#039;/&amp;#039;&amp;#039;&amp;#039;[http://en.wikipedia.org/wiki/Database_engine engines] with proven reliability. Base is merely a front-end component, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various databases (data sources). In this role, Base is used to generate a connection file (.odb) which is then registered in OpenOffice to provide access to a data-source from documents such as Writer Forms, Mail-merge or Calc Spreadsheets (including [http://openoffice.blogs.com/openoffice/2006/11/data_pilots_in_.html Data Pilot / Pivot Tables]). Base can also provide table-views, query storage, forms, reports and macros. These front-end components are created through various wizards or visual designers, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is bundled with various &amp;quot;back-end&amp;quot; database options including tabular  spreadsheet data (CSV, ODS), dBase [http://en.wikipedia.org/wiki/Flat_file_database flat-file] table creation ([http://en.wikipedia.org/wiki/DBase DBF]), as well as, an [http://en.wikipedia.org/wiki/SQL SQL] [http://en.wikipedia.org/wiki/Relational_database relational database] engine (HSQLDB). These bundled options connect seamlessly with Base, perhaps giving the impression that Base, itself, is providing back-end database function. In fact, the default database option in Base is a combination of Base and HSQLDB data files &amp;#039;embedded&amp;#039; within a single ODB file. Base also supports standard [http://en.wikipedia.org/wiki/Jdbc JDBC]/[http://en.wikipedia.org/wiki/ODBC ODBC] drivers as provided by all the popular RDBMS engines including: HSQLDB, H2, PostgreSQL, MySQL, Firebird, Oracle, MS SQL Server, etc. &lt;br /&gt;
&lt;br /&gt;
* NOTE: Several drivers are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base (to create and manage the database), the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if that happens, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is a complete (99.9%) solution with Base, because it&amp;#039;s virtually impossible to exceed the capabilities of this modern SQL engine within the context of a Base project (to include modern SQL commands, role-based security, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more). In fact, it&amp;#039;s best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. Base can certainly be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. But these are well beyond the scope of Base, in general, with more complex setup and daily maintenance issues, while adding little, if anything to a Base-centric project. Having said all that, it is recognized that many novices simply maintain their data in tabular format within a spreadsheet. So as previously mentioned, Base can connect to granular data in popular spreadsheet formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. A dBase flat-file database is similar to a spreadsheet, in concept, except that the provided dBase driver can connect to any number of dBase files (tables) within a single folder, while adding some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudamentary query] capabilities the mix through Base (requires write-privileges to the dBase folder/files). Since this dBase driver can be used with Base to seamlessly create new dBase tables with ease, this provides a database capability quite similar to MS Works. This may be sufficient for many Base users, but keep in mind that HSQLDB can be used to create flat-file or relational tables, as necessary. So unless you&amp;#039;re working in a Java-less environment, HSQLDB duplicates the function of the dBase driver with Base while offering much greater function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234688</id>
		<title>FAQ (Base)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=FAQ_(Base)&amp;diff=234688"/>
		<updated>2014-04-25T06:31:51Z</updated>

		<summary type="html">&lt;p&gt;Dacm: /* Is Base a database? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Database]]&lt;br /&gt;
[[Category:Base Documentation]]&lt;br /&gt;
[[Category:User FAQ]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Base ==&lt;br /&gt;
&lt;br /&gt;
=== Is Base a database? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not technically. Database applications typically involve separate &amp;quot;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end]&amp;quot; and back-end components. This two-tiered software model provides flexibility and data-durability, by allowing a graphical front-end ([http://en.wikipedia.org/wiki/Graphical_user_interface GUI]) to provide user-interface elements, while leaving the heavy-lifting (data storage and retrieval) to specialized database [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics drivers]&amp;#039;&amp;#039;&amp;#039;/&amp;#039;&amp;#039;&amp;#039;[http://en.wikipedia.org/wiki/Database_engine engines] with proven reliability. Base is merely a front-end component, used primarily to connect OpenOffice [http://en.wikipedia.org/wiki/OpenDocument ODF] documents to various databases (data sources). In this role, Base is used to generate a connection file (.odb) which is then registered in OpenOffice to provide access to a data-source from documents such as Writer Forms, Mail-merge or Calc Spreadsheets (including [http://openoffice.blogs.com/openoffice/2006/11/data_pilots_in_.html Data Pilot / Pivot Tables]). Base can also provide table-views, query storage, forms, reports and macros. These front-end components are created through various wizards or visual designers, including a Table Designer, Query Builder, Form Designer, Report Designer, and Integrated Macro Development Environment ([http://en.wikipedia.org/wiki/Integrated_development_environment IDE]). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confusion lies in the fact that OpenOffice is bundled with various &amp;quot;back-end&amp;quot; database options including tabular  spreadsheet data (CSV, ODS), dBase [http://en.wikipedia.org/wiki/Flat_file_database flat-file] table creation ([http://en.wikipedia.org/wiki/DBase DBF]), as well as, an [http://en.wikipedia.org/wiki/SQL SQL] [http://en.wikipedia.org/wiki/Relational_database relational database] engine (HSQLDB). These bundled options connect seamlessly with Base, perhaps giving the impression that Base, itself, is providing back-end database function. In fact, the default database option in Base is a combination of Base and HSQLDB data files &amp;#039;embedded&amp;#039; within a single ODB file. Base also supports standard [http://en.wikipedia.org/wiki/Jdbc JDBC]/[http://en.wikipedia.org/wiki/ODBC ODBC] drivers as provided by all the popular RDBMS engines including: HSQLDB, H2, PostgreSQL, MySQL, Firebird, Oracle, MS SQL Server, etc. &lt;br /&gt;
&lt;br /&gt;
* NOTE: Several drivers are included with Base. Some provide read-only data access, while others provide full read-write data access. For example, the included read-only drivers provide access to existing data stored in tabular-spreadsheets (.ods/.xls), delimited text files (.csv), or popular address-book formats. The bundled &amp;quot;dBase&amp;quot; driver provides full read-write access to flat-file &amp;quot;dBase&amp;quot; tables, to include table &amp;#039;&amp;#039;creation&amp;#039;&amp;#039; and [http://www.openoffice.org/dba/specifications/file_based_functions.html rudimentary queries] through Base (requires write-privileges to the database folder); this dBase driver provides flat-file database functionality comparable to MS Works. But Base goes much farther. Base also supports standard [http://en.wikipedia.org/wiki/JDBC_driver JDBC] or [http://en.wikipedia.org/wiki/ODBC_driver#Drivers ODBC] driver access to all major database engines, as well as native-SDBC drivers written specifically for *Office (see: [http://www.openoffice.org/dba/drivers/postgresql/index.html PostgreSQL], [http://extensions.services.openoffice.org/en/project/aoo-my-sdbc MySQL], etc.). The bundled HSQL relational database engine enjoys tight integration with Base, but HSQLDB provides an external JDBC driver option which increases reliability and provides multi-user database access (see &amp;#039;split HSQL database&amp;#039; below). The bundled HSQLDB engine is often sufficient, but HSQLDB 2.x takes Base to new levels with all of the latest desktop database features and functions. Base can also be connected to full-scale engines, but be aware that these [http://en.wikipedia.org/wiki/Relational_database_management_system RDBMS&amp;#039;s] generally require an alternate database manager for [http://en.wikipedia.org/wiki/Data_definition_language DDL] tasks and general setup -- although it is possible to send the necessary low-level commands using the &amp;#039;&amp;#039;&amp;#039;Tools &amp;gt; SQL&amp;#039;&amp;#039;&amp;#039; console in Base.&lt;br /&gt;
&lt;br /&gt;
* With so many options, it can be difficult to choose the best path for a Base project. In general, if you&amp;#039;re building a database from scratch using Base (to create and manage the database), the bundled HSQLDB engine is the 95% solution. Very few Base users will ever exceed the features and functions provided by this bundled engine (HSQLDB 1.8). But if and when that happens, it&amp;#039;s a relatively trivial matter to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 upgrade to HSQLDB 2.x] which is a complete (99.9%) solution with Base, because it&amp;#039;s virtually impossible to exceed the capabilities of this modern SQL engine within the context of a Base project (to include modern SQL commands, role-based security, advanced data-types, stored procedures, ACID reliability, encryption, hot-backups, billion record databases, and much more). In fact, it&amp;#039;s best to [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 begin with HSQLDB 2.x] whenever possible. Base can certainly be used to access MySQL, PostgreSQL, and other popular full-scale RDBMS solutions. But these are well beyond the scope of Base, in general, with more complex setup and daily maintenance issues, while adding little, if anything to a Base-centric project. Having said all that, it is recognized that many novices simply maintain their data in tabular format within a spreadsheet. So as previously mentioned, Base can connect to granular data in popular spreadsheet formats. However, the data is read-only through Base and a spreadsheet can become unmanageable beyond a few hundred rows of data. A dBase flat-file database is similar to a spreadsheet, in concept, except that the provided dBase driver can connect to any number of dBase files (tables) within a single folder, while adding some [http://www.openoffice.org/dba/specifications/file_based_functions.html rudamentary query] capabilities the mix through Base (requires write-privileges to the dBase folder/files). Since this dBase driver can be used with Base to seamlessly create new dBase tables with ease, this provides a database capability quite similar to MS Works. This may be sufficient for many Base users, but keep in mind that HSQLDB can be used to create flat-file or relational tables, as necessary. So unless you&amp;#039;re working in a Java-less environment, HSQLDB duplicates the function of the dBase driver with Base while offering much greater function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full installation of *Office including Writer is necessary to access all available functions of Base. Available Base functions and configurations include:&lt;br /&gt;
*Base is a &amp;#039;&amp;#039;&amp;#039;database connection tool&amp;#039;&amp;#039;&amp;#039;. Base can be used to generate connections to various data-sources, thereby enabling data access/integration across the *Office suite. To provide this function, a Base wizard is used to create a connection file (.odb). This standalone file is then &amp;#039;registered&amp;#039; in *Office for universal access to the data-source. This process may be repeated to gain access to additional data-sources. Simply press the &amp;#039;F4&amp;#039; key from any *Office application to view all registered data-sources. &lt;br /&gt;
** Typical data-source usage includes:&lt;br /&gt;
*** Writer (mail-merge, forms), &lt;br /&gt;
*** Calc (pivot tables, graphs, forms), &lt;br /&gt;
*** Impress (dynamic slide data, graphs), &lt;br /&gt;
*** Base (stored queries, forms, reports). &lt;br /&gt;
** Supported data sources include: &lt;br /&gt;
*** spreadsheets (tabular data; read-only), &lt;br /&gt;
*** delimited text files (CSV; read-only), &lt;br /&gt;
*** popular address book formats, &lt;br /&gt;
*** dBase tables (one table per file; read/write to include table creation),&lt;br /&gt;
*** SQL relational databases (multiple tables; read/write plus many additional functions).&lt;br /&gt;
*Base is a well-rounded &amp;#039;&amp;#039;&amp;#039;front-end&amp;#039;&amp;#039;&amp;#039;. Base provides database management tools ([http://en.wikipedia.org/wiki/Data_definition_language DDL] / [http://en.wikipedia.org/wiki/Data_manipulation_language DML]), as well as, stored queries, forms, reports and macros. The associated tools include:&lt;br /&gt;
**a command-line SQL console&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_database_tables visual table designer]&lt;br /&gt;
**an index manager&lt;br /&gt;
**editable table views&lt;br /&gt;
**a [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Defining_relationships visual data-relationships designer] ([http://en.wikipedia.org/wiki/Cardinality_(data_modeling) cardinality]) &lt;br /&gt;
**a descent [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_queries_and_reports visual query builder]&lt;br /&gt;
**a relatively powerful [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_a_database_form form designer]&lt;br /&gt;
**a rudimentary [http://wiki.openoffice.org/wiki/Documentation/*Office3_User_Guides/Getting_Started/Creating_reports reports designer] [requires [http://en.wikipedia.org/wiki/Java_Runtime_Environment JRE]]&lt;br /&gt;
**a macro development environment&lt;br /&gt;
**various [http://extensions.openoffice.org/en/search/node/Base extensions] compliment this list nicely&lt;br /&gt;
&lt;br /&gt;
*Base provides a &amp;#039;&amp;#039;&amp;#039;database application development environment&amp;#039;&amp;#039;&amp;#039;. Base is merely a [http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx front-end], but it&amp;#039;s [http://en.wikipedia.org/wiki/Module_(programming) bundled] with a few &amp;#039;back-end&amp;#039; database options. These options become a source of confusion, because they run seamlessly with Base. You&amp;#039;ll find both [http://en.wikipedia.org/wiki/Flat_file_database flat-file] (non-relational) and [http://en.wikipedia.org/wiki/Relational_database relational database] functionality included. &amp;quot;Flat-file&amp;quot; connection drivers (dBase, Spreadsheet and/or Text) may offer [http://www.openoffice.org/dba/specifications/file_based_functions.html SQL-like functions], but don&amp;#039;t expect them to be as extensive as those available when connecting Base to an SQL engine. Some additional function is provided by Base SubForms, which support filtering and ad hoc relationships even among flat-file tables. Beyond these Base functions, Calc &amp;#039;pivot tables&amp;#039; offer [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo-queries including aggregate functions], while Calc charting is suitable for reports. So flat-file tables can provide entry-level database functionality, sufficient for many home-projects including a simple contact list, inventory, etc. But when data redundancies become a liability, or the full power of SQL is desired, it&amp;#039;s time to connect Base to an SQL engine such as the bundled HSQL database engine. In this case, the &amp;#039;existing database&amp;#039; wizard should be used to create a &amp;#039;JDBC&amp;#039; connection with HSQL (see the &amp;#039;split database&amp;#039; setup steps below). This engine adds a plethora of [http://www.hsqldb.org/doc/1.8/guide/ features], [http://www.hsqldb.org/doc/1.8/guide/ch09.html#N1251E functions], and [http://www.hsqldb.org/doc/1.8/guide/ch09.html query options] to the mix. So, while you&amp;#039;re not limited to the installed back-end database options, everything required to create a complete *Office database application is included with Base. A quick summary of the bundled back-end options include:&lt;br /&gt;
** flat-file table (Calc spreadsheet with [http://en.wikipedia.org/wiki/File:Aoo_calc_3.4.1.png tabular data], CSV, or dBase file)&lt;br /&gt;
** flat-file table queries ([http://en.wikipedia.org/wiki/DBase#File_formats dBase file-format] generated through Base; single-table query support; one table per file; similar to MS Works)&lt;br /&gt;
** flat-[http://www.openoffice.org/dba/specifications/file_based_functions.html file based functions] (provided by Base through selected flat-file &amp;#039;drivers&amp;#039; such as dBase, Text, etc.)&lt;br /&gt;
** flat-file filtering and ad hoc relationships (provided by SubForms in Base/Writer/Calc)&lt;br /&gt;
** flat-file [http://forum.openoffice.org/en/forum/viewtopic.php?p=258845#p258845 pseudo queries] (provided by Calc through Pivot Tables)&lt;br /&gt;
** SQL relational database (multiple related tables and extensive functionality through the included [http://www.hsqldb.org/doc/1.8/guide/ HSQL database engine]; similar to MS Access + [http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine MS Jet engine]).&lt;br /&gt;
*Base offers to create an &amp;#039;&amp;#039;&amp;#039;all-in-one &amp;#039;embedded database&amp;#039; file&amp;#039;&amp;#039;&amp;#039; similar to MS Access. In this configuration, the front-end components (queries, forms, reports and macros) are packaged together with the database files produced by HSQLDB, all within a single Base (.odb) file. Unfortunately, this single-file concept has proven unreliable with Base, leading to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 rampant data corruption]. So it&amp;#039;s best to avoid the &amp;#039;Create a new database&amp;#039; wizard in Base thereby avoiding &amp;#039;embedded database&amp;#039; files (perhaps with the exception of developing prototypes or distributing [http://forum.openoffice.org/en/forum/viewforum.php?f=100 examples]). Fortunately, Base offers an alternative wizard which produces a robust &amp;#039;[http://msdn.microsoft.com/en-us/library/aa141493(office.10).aspx split-database]&amp;#039; configuration in which the database itself (tables and user-data) is maintained as a separate file (or files) as necessary for the proper stability. Steps for creating a new &amp;#039;split-database&amp;#039; utilizing the built-in HSQL database-engine with Base are outlined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So when paired with a bundled data-source Base can be mistaken for &amp;quot;database.&amp;quot; But in reality, Base contributes only connection- and other front-end functionality. This distinction is admittedly blurred by the bundled database options (flat-file drivers and a relational HSQLDB engine) which are also installed with *Office.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
=== Do I need Java to use Base? ===&lt;br /&gt;
&lt;br /&gt;
Not necessarily. Java ([http://en.wikipedia.org/wiki/Java_virtual_machine JRE]) is used to run various wizards, extensions and data sources -- such as the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension and the built-in “[http://www.hsqldb.org/doc/1.8/guide/ HSQL relational database engine].” Java is also necessary to utilize the popular &amp;#039;JDBC&amp;#039; connection option available with a variety of external database engines. But Base, itself, does not require Java. So while Base can offer greater function out-of-the-box with Java installed, the Java components are optional. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data sources usable without Java include: delimited [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_Flat_File_Formats Text files] (CSV), [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_OpenOffice.org_Calc_Files spreadsheets], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_address_books address books], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase] files, as well as many relational-databases. In addition, tables and views created with MS Access are accessible on the Windows platform. The dBase option is particularly handy for creating  [http://en.wikipedia.org/wiki/Flat_file_database flat-file] databases [http://homepage.ntlworld.com/garryknight/linux/oodbase.html through Base], similar to MS Works. For [http://en.wikipedia.org/wiki/Relational_database relational database] needs, Base connects to a variety of non-Java engines such as [http://www.postgresql.org/ PostgreSQL], [http://www.mysql.org/ MySQL], [http://mariadb.org MariaDB], [http://www.firebirdsql.org Firebird], [http://www.oracle.com/index.html Oracle] or MS SQL Server. These [http://en.wikipedia.org/wiki/Relational_database#Relational_database_management_systems RDBMS&amp;#039;s] may be installed [http://en.wikipedia.org/wiki/Localhost locally] or on a network for database sharing among multiple users. Base connects to these full-scale RDBMS&amp;#039;s in non-Java environments through standard ODBC, or native [https://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/Driver_Specifics SDBC], drivers as available. But unlike dBase, these RDBMS&amp;#039;s require additional tools for database creation and schema development ([http://en.wikipedia.org/wiki/Data_definition_language DDL]) tasks. They also require additional daily chores such as RDBMS start-up and shutdown...so they&amp;#039;re not exactly &amp;quot;seamless&amp;quot; with Base. [http://www.sqlite.org/ SQLite] can fill-the-gap between dBase (flat-file databases) and these full-featured RDBMS options. SQLite is not a full-featured RDBMS, but it can be adequate for simple projects confined to a single-user (throughout the database life-cycle) and with [http://www.sqlite.org/whentouse.html rather basic] relational-database requirements (no DATE data-types or date-related searches/functions, etc.). SQLite runs seamlessly with Base, but installation requires [http://www.ch-werner.de/sqliteodbc/ third-party drivers], and [http://www.sqlite.org/cvstrac/wiki?p=ManagementTools additional tools] for database creation and schema development tasks. Recently, Firebird was chosen as the non-Java alternative to HSQLDB in LibreOffice. So &amp;quot;Embedded Firebird&amp;quot; is now an [https://wiki.documentfoundation.org/ReleaseNotes/4.2#Experimental_Features experimental feature] in LibreOffice 4.2+. This integration of a full-scale, relational, database engine holds great promise, but proper implementation could take years because the current design [http://en.libreofficeforum.org/node/7876 risks data-corruption], while  Firebird inherently requires a more advanced database manager than Base currently provides.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, with a [http://java.com/en/download/index.jsp Java Runtime Environment (JRE)] installed (even [http://portableapps.com/apps/utilities/java_portable portably]) Base runs well with various Java databases including the built-in HSQLDB. This has some distinct advantages over SQLite, and perhaps over other relational database (RDBMS) options. Like SQLite, Java database-engines are light-weight, [http://www.h2database.com/html/features.html#comparison fast], cross-platform and run seamlessly (auto start/stop) with Base. HSQL databases are created through Base, while the GUI Table Designer is adequate for [http://forum.openoffice.org/en/forum/viewtopic.php?p=249010#p249010 most]  [http://en.wikipedia.org/wiki/Data_definition_language schema development] tasks. Installation is a non-issue, since Java engines are [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 completely portable]. And Java databases are particularly rich in [http://www.h2database.com/html/features.html#comparison features] by comparison. For example, modern Java databases like [http://hsqldb.org/ HSQLDB 2.x], [http://www.h2database.com H2] and perhaps [http://db.apache.org/derby/ Apache Derby] offer advanced features including: [http://en.wikipedia.org/wiki/ACID ACID transactions], [http://en.wikipedia.org/wiki/SQL:2008 modern SQL syntax], [http://wiki.answers.com/Q/Why_is_data_type_important data-typing], [http://en.wikipedia.org/wiki/User-defined_function#Databases custom functions], [http://en.wikipedia.org/wiki/Stored_procedure stored procedures], [http://en.wikipedia.org/wiki/Transparent_Data_Encryption encryption], [http://en.wikipedia.org/wiki/Backup#Live_data hot-backups], and advanced multi-user support ([http://en.wikipedia.org/wiki/Multiversion_concurrency_control MVCC]). These additional features can ease project-development to a degree. For instance Base queries, forms and reports thrive in a full-featured SQL environment, thereby avoiding macros. Something as simple as &amp;#039;data-typing&amp;#039; enables flexible queries based on date/time fields; something that becomes a nightmare with a weak data-typed engine like SQLite. And as the user-count grows, these Java engines scale modestly in support of multiple, concurrent users. So Java database engines occupy a niche on the desktop and pair well with Base, expanding the scope and potential of Base projects while easing application development. Given the advantages, it&amp;#039;s no wonder that HSQLDB 1.8 ([http://hsqldb.org/web/hsqlDevelopment.html released July 2005]) was selected over SQLite as the default with Base -- albeit a rather dated/crippled version of HSQLDB by today&amp;#039;s standards. But you&amp;#039;re not confined to the bundled version/engine. HSQLDB 2.x and H2 are much more advanced and particularly well-suited for Base projects. You&amp;#039;ll also find wide support for HSQLDB and perhaps H2 in the Base community forums and other support channels. NOTE: a [https://forum.openoffice.org/en/forum/viewtopic.php?p=287565#p287565 32-bit JRE] is necessary for Windows and OS-X (Mac) environments, where Base is strictly a 32-bit application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, if you don&amp;#039;t have Java (JRE), then the following functionality will &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; be available:&lt;br /&gt;
* You will not be able to create or open all-in-one “embedded database” files. &lt;br /&gt;
* You will not be able to run wizards including the table, query, form, or report wizard.&lt;br /&gt;
* You will not be able to use the [http://extensions.openoffice.org/en/project/oracle-report-builder Report Builder] extension.&lt;br /&gt;
* You will not be able to utilize the JDBC link option.&lt;br /&gt;
* You will not be able to create a seamless, portable, cross-platform, full-featured, data-safe, relational-database project as available with [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Base templates].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t Base load/find my JDBC driver? ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org must know the path to the JDBC driver for a given Java database engine. This path is known as a &amp;quot;Class Path&amp;quot; in *Office.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To add a JDBC driver (.jar file) to the Class Path:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Open the embedded &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Browse&amp;lt;/code&amp;gt; button to locate the .jar file associated with the Java database engine&lt;br /&gt;
&lt;br /&gt;
*Re-start *Office and close Quickstarter (tray-app) as applicable...or simply restart your computer&lt;br /&gt;
&lt;br /&gt;
== HSQLDB ==&lt;br /&gt;
&lt;br /&gt;
=== What is HSQLDB? ===&lt;br /&gt;
[http://www.hsqldb.org/ HSQLDB] is an open source, cross-platform, SQL, relational database management system (RDBMS). It&amp;#039;s also known as HyperSQL or HSQL database engine. It&amp;#039;s written in Java so a [http://www.java.com/en/ JRE] (Java Runtime Environment) must be installed (or available [http://portableapps.com/apps/utilities/java_portable as a portable app]) in order to utilize this database engine. &lt;br /&gt;
&lt;br /&gt;
Version [http://www.hsqldb.org/doc/1.8/guide/ch09.html 1.8.0.10] (circa 2005) of HSQLDB is integrated with *Office (AOO/LibO). &lt;br /&gt;
&lt;br /&gt;
The integrated JDBC driver supports several HSQLDB operating modes including two with Base. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;In-process (&amp;#039;file mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides seamless, &amp;#039;&amp;#039;single-user&amp;#039;&amp;#039; access with Base. &amp;quot;Seamless&amp;quot; implies automated database access with no need to start/stop a database server; similar to [http://www.h2database.com/html/main.html H2], [http://wiki.openoffice.org/wiki/Documentation/DevGuide/Database/The_SDBC_Driver_for_dBase dBase], and SQLite. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Client-server (&amp;#039;server mode&amp;#039;)&amp;#039;&amp;#039;&amp;#039; provides &amp;#039;&amp;#039;multi-user&amp;#039;&amp;#039; access on a network or locally from client-applications such as Base.&lt;br /&gt;
&lt;br /&gt;
=== Is HSQLDB reliable? ===&lt;br /&gt;
Yes, HSQLDB is a robust, transactional, database engine with [http://en.wikipedia.org/wiki/ACID ACID] properties and a mature code base. These same technologies are at the heart of PostgreSQL, MySQL, Oracle, DB2, MS SQL Server, etc. In addition, HSQLDB employs a transaction log with auto-recovery. An automatic backup file is also maintained if enabled. The end-user can supplement these measures by storing the database files in a folder protected by [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 automatic backup software or cloud-sync services]. &lt;br /&gt;
It&amp;#039;s also prudent to run database applications on a computer protected by an &amp;#039;uninterruptable power supply&amp;#039; (UPS) or on a laptop with the battery installed. These measures avoid loss (rollback) of any buffered data in the event of a power failure. Speaking of buffered data, all transactional database engines employ a write-delay buffer to enhance performance. The buffer can be set to 0 seconds at the expense of write performance. HSQLDB uses a modest 500ms buffer by default, so new data is safely written to disk after a half-second delay. Base sets this write-delay buffer to 60 seconds for all &amp;#039;embedded databases&amp;#039; files, which is excessive, but most folks can recover from the loss of one minute&amp;#039;s productivity in the event of a power failure or similar event. In all cases, buffered data is written immediately to disk upon normal shutdown. Advanced, enterprise-level, reliability measures such as hot backups, clustering and replication, designed for 24/7 availability, are not available with HSQLDB 1.8 -- although [http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_online_backup hot backups] are supported by HSQLDB 2.x, while clustering is oddly-enough a feature of [http://www.h2database.com H2] database. &lt;br /&gt;
&lt;br /&gt;
=== So why should I avoid &amp;#039;embedded databases&amp;#039;? ===&lt;br /&gt;
In Base parlance, an &amp;#039;embedded database&amp;#039; is a single-file database. Specifically, this refers to the inclusion of both [http://en.wikipedia.org/wiki/Front_and_back_ends front-end and back-end] database components within a single, zip-archive file. So with Base, an &amp;#039;embedded database&amp;#039; is simply a zip-archive file (.odb) which includes files generated by OpenOffice as well as HSQLDB. This (.odb) file is unzipped to a temporary folder upon opening in OpenOffice. When the file is &amp;quot;closed,&amp;quot; the latest contents are repackaged into a single zip-archive by OpenOffice. This re-packaging process is problematic and commonly leads to file-corruption, despite the auto-recovery feature built-into OpenOffice. The first signs of a &amp;#039;&amp;#039;corrupted&amp;#039;&amp;#039; Base .odb file is a popup dialog offering to open the file with the proper &amp;quot;filter&amp;quot; selection. In many cases the file is recoverable through tedious [http://forum.openoffice.org/en/forum/viewtopic.php?p=220129#p220129 manual recovery]. But much like recovering a crashed hard-drive, the process requires some expertise with file-recovery tools and knowledge of HSQLDB&amp;#039;s automatic backup system. &lt;br /&gt;
&lt;br /&gt;
So it&amp;#039;s best to [http://forum.openoffice.org/en/forum/viewtopic.php?p=162653#p162653 avoid these &amp;#039;embedded database&amp;#039; files] whenever possible. This means avoiding the wizard dubbed &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Create a new database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Base. Thankfully, this particular wizard isn&amp;#039;t necessary to create new HSQL databases with Base.&lt;br /&gt;
&lt;br /&gt;
In fact, Base offers a robust alternative leveraging the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Connect to an existing database&amp;lt;/big&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; wizard. The wizard connects Base to various data-sources in a traditional &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split database]&amp;#039; architecture.  In this configuration the database files remain separate. The Base (.odb) file, in this case, contains only front-end components (connection parameters, stored queries, forms, reports, and macros). The back-end database files are accessed exclusively by their respective driver or database engine. Due to the separation of roles at the file-level, a Base crash cannot corrupt the back-end database files. This &amp;#039;split&amp;#039; configuration is the normal Base configuration with PostgreSQL, MySQL, H2, etc. As expected, connecting Base with HSQLDB in this configuration also achieves the proper data-reliability. Everything we need to generate a &amp;#039;split HSQL database&amp;#039; is included with Base. But manual setup is tedious, and the resulting database is scarcely portable. Things certainly don&amp;#039;t get any easier with PostgreSQL, MySQL, etc. In response, the user-community developed [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base templates]. These templates have become the best way to generate a new, full-featured, portable database using Base with the latest HSQLDB engine.&lt;br /&gt;
&lt;br /&gt;
=== How do I setup support for &amp;#039;[http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split]&amp;#039; HSQL databases in Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
A [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced Base template] (.odb) as offered in the link above is &amp;#039;&amp;#039;highly&amp;#039;&amp;#039; recommended for single-user, split-database access. These templates &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; require manual Class Path setup as outlined below. The templates use a macro-derived &amp;#039;session&amp;#039; Class Path as opposed to a manually-setup &amp;#039;global&amp;#039; Class Path. So unless you&amp;#039;re running a split HSQL database in server-mode (multi-user support), there&amp;#039;s no good reason to setup the global Class Path manually in Base. In fact, a global Class Path has the potential to corrupt your legacy &amp;#039;embedded database&amp;#039; (.odb) files, through inadvertent upgrade of the internal database to HSQLDB 2.3.x. Once upgraded, these &amp;#039;embedded database&amp;#039; files become &amp;#039;&amp;#039;unusable&amp;#039;&amp;#039;. So before proceeding with the following Class Path setup steps, make good backups of all your legacy &amp;#039;embedded database&amp;#039; files (.odb). You&amp;#039;ve been warned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To manually setup a global &amp;quot;Class Path&amp;quot; in *Office, such as for server-mode access to a split HSQL database, follow the steps below. Java database engines are typically packaged as a single zip-archive file (.jar extension). This JAR file will normally contain all the necessary components including a JDBC driver for external connection purposes. Therefore, Base simply needs to know the path to the engine&amp;#039;s JAR file. This one-time setup becomes necessary on each computer used to access a &amp;#039;split HSQL database&amp;#039; without the use of a macro-enhanced Base front-end (.odb) file, such as when running the database in server-mode.&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;lt;code&amp;gt;Tools &amp;gt; Options&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Select the &amp;lt;code&amp;gt;Java&amp;lt;/code&amp;gt; dialog&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Class Path&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Press the &amp;lt;code&amp;gt;Add Archive...&amp;lt;/code&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
*Navigate among your installed programs to locate &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**To use the built-in version of HSQLDB 1.8.0.10, look for hsqldb.jar in the *Office installation path: &lt;br /&gt;
*** For AOO or OOo navigate to: &amp;lt;code&amp;gt;OpenOffice.org X.x\basis\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
*** For LibreOffice navigate to: &amp;lt;code&amp;gt;LibreOffice X.x\program\classes\hsqldb.jar&amp;lt;/code&amp;gt;&lt;br /&gt;
**To use an installation of [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8], look in the associated folder &amp;lt;code&amp;gt;...\lib\hsqldb.jar&amp;lt;/code&amp;gt;.&lt;br /&gt;
***Note: Base is [http://forum.openoffice.org/en/forum/viewtopic.php?p=252960#p252960 incompatible with HSQLDB 2.2.9], so utilize [http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_2_2/hsqldb-2.2.8.zip/download HSQLDB 2.2.8] or the latest [http://hsqldb.org/ HSQLDB 2.3x]. &lt;br /&gt;
&lt;br /&gt;
*Click: OK twice and re-start *Office while also closing the Quickstarter (taskbar-app) manually as applicable...or simply restart your computer to make sure.&lt;br /&gt;
&lt;br /&gt;
=== How do I create a new &amp;#039;split&amp;#039; HSQL database using Base? ===&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To manually create a new [http://en.wikipedia.org/wiki/Microsoft_Access#Split_Database_Architecture split-database] from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**Note: The above &amp;#039;Class Path&amp;#039; procedure must be accomplished on every computer used to access &amp;#039;split&amp;#039; HSQL databases without employing a [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 macro-enhanced template].&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: [http://forum.openoffice.org/en/forum/download/file.php?id=16025 &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;] (feel free to rename this file)&lt;br /&gt;
*Click the file to open it in Base&lt;br /&gt;
*Then click on the Tables icon to create a new &amp;#039;split-database&amp;#039;&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;file-mode&amp;quot; (single-user) access to the associated HSQL database. The database files are created automatically in a dedicated folder named &amp;#039;mydb&amp;#039; as specified in the &amp;#039;data source URL&amp;#039; within the Base file (mydb.file.odb). The full path to the database is: &amp;#039;&amp;#039;&amp;#039;\users\public\databases\mydb\mydb.*&amp;#039;&amp;#039;&amp;#039;. The database path and name are flexible, but any manual changes must also be recorded in the &amp;#039;Data-source URL&amp;#039; string as outlined below. &amp;quot;File mode&amp;quot; is a single-user access mode, but we can reconfigure this Base file for &amp;quot;server-mode&amp;quot; access to the same database thereby allowing concurrent, read/write access among multiple users. In any case, a &amp;#039;split database&amp;#039; consists of two major components: &lt;br /&gt;
***1. A Base &amp;#039;&amp;#039;front-end&amp;#039;&amp;#039; file (such as &amp;#039;&amp;#039;&amp;#039;mydb.file.odb&amp;#039;&amp;#039;&amp;#039;) contains the database connection information, plus any Queries, Forms, Reports and Macros that you develop using Base; &lt;br /&gt;
***2. The &amp;#039;&amp;#039;back-end&amp;#039;&amp;#039; HSQL database files consisting of four (4) separate files containing your Tables and Data: &amp;#039;&amp;#039;&amp;#039;mydb.script, mydb.properties, mydb.data, mydb.backup&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** Note: These files makeup your portable database application, so they&amp;#039;re best maintained in a dedicated database folder. Other supporting files may also be included in the database folder, such as your &amp;#039;server mode&amp;#039; batch/script files (discussed in the note below). In any case, a properly configured Base &amp;quot;database application&amp;quot; will consist of at least two files including the Base (.odb) file and the database file(s). So while H2 and SQLite utilize a single file per database, when combined with Base, it&amp;#039;s generally best to maintain a dedicated database folder per database application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To create additional, new databases&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
See: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Portable &amp;#039;split&amp;#039; HSQL database template] or follow the manual steps below. But understand that these two methods are [http://forum.openoffice.org/en/forum/viewtopic.php?p=278555#p278555 mutually exclusive].&lt;br /&gt;
&lt;br /&gt;
*1. Download a new copy of &amp;#039;[http://forum.openoffice.org/en/forum/download/file.php?id=16025  mydb.file.odb]&amp;#039; (feel free to rename this file), or create your own copy using the steps under the &amp;#039;Alternative&amp;#039; heading below.&lt;br /&gt;
*2. Select &amp;#039;&amp;#039;&amp;#039;Edit &amp;gt; Database &amp;gt; Properties...&amp;#039;&amp;#039;&amp;#039; to access the &amp;#039;Data source URL&amp;#039; settings.&lt;br /&gt;
*3. Then change only the &amp;#039;&amp;#039;&amp;#039;folder name&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;entire path&amp;#039;&amp;#039;&amp;#039; to the &amp;#039;mydb&amp;#039; database in the &amp;#039;Data source URL&amp;#039; string.&lt;br /&gt;
**For instance, change the path to: &lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\public\databases\&amp;#039;&amp;#039;&amp;#039;inventory&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
***\users\&amp;#039;&amp;#039;&amp;#039;myname&amp;#039;&amp;#039;&amp;#039;\databases\&amp;#039;&amp;#039;&amp;#039;contacts&amp;#039;&amp;#039;&amp;#039;\mydb.*&lt;br /&gt;
**Note: You can also change the &amp;#039;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;#039; (from &amp;#039;mydb&amp;#039;) in this manner in order to create a new database. While this is logical, it will also affect server mode access (as opposed to file mode access). The server mode start-up and shutdown strings reference the database name (&amp;#039;mydb&amp;#039; in this case). So any change to the database name must also be applied to the start-up/shutdown strings. These strings are complex, and they&amp;#039;re not stored within the Base file, so we typically store and run them using a convenient [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 batch/script file]. These batch/script files can remain relatively universal/unchanged as long as we keep the database name constant across database folders. store a copy of these batch/script files in each database folder for server mode access. So as a recommendation, change only the &amp;#039;&amp;#039;folder name&amp;#039;&amp;#039; within the &amp;#039;data source URL&amp;#039; in order to create a new &amp;#039;split&amp;#039; HSQL database, identified by folder name. Feel free to change the name of your Base (.odb) files as necessary to differentiate database access (change mydb.file.odb to AddressBook.odb perhaps matching the name of the folder). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; you can create this master Base .odb file &amp;#039;&amp;#039;manually&amp;#039;&amp;#039; using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
*Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Data Source URL (file mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:file:&amp;lt;&amp;#039;&amp;#039;path&amp;#039;&amp;#039;&amp;gt;/&amp;lt;&amp;#039;&amp;#039;database name&amp;#039;&amp;#039;&amp;gt;;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**For example (database folder named &amp;#039;mydb&amp;#039; with database also named &amp;#039;mydb&amp;#039;):&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:/users/public/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
**HSQLDB 2.x supports the wildcard character (~) to specify/derive the current user&amp;#039;s folder:&lt;br /&gt;
***&amp;#039;&amp;#039;hsqldb:file:~/databases/mydb/mydb;default_schema=true;shutdown=true;hsqldb.default_table_type=cached;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
*JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Class Path setup issues&lt;br /&gt;
**Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Password required: leave un-checked at this stage.&lt;br /&gt;
*Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Errors may indicate Data Source URL syntax issues&lt;br /&gt;
**Errors may indicate database authentication issues. Check user name and password.&lt;br /&gt;
**Errors may indicate user-access privileges (file or folder not shared) imposed by the operating system and managed by the system administrator.&lt;br /&gt;
* Optionally enable database-folder portability using the macro and instructions provided here: [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=61183 Wizard - Create an new split HSQL database]&lt;br /&gt;
&lt;br /&gt;
=== How do I convert an &amp;quot;embedded database&amp;quot; to a &amp;quot;split-database&amp;quot; ? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 this tutorial] for single-user access, or perhaps [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 these steps] to run the database in server mode.&lt;br /&gt;
&lt;br /&gt;
=== How do I edit the Field properties of a &amp;#039;split database&amp;#039; Table ? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Under construction...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*In the meantime, see the [http://forum.openoffice.org/en/forum/viewtopic.php?f=13&amp;amp;t=54254 Field Properties workaround].&lt;br /&gt;
&lt;br /&gt;
=== How do I setup multi-user &amp;#039;server mode&amp;#039; access to my HSQL database? ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To run HSQLDB in &amp;#039;server mode&amp;#039; and configure clients for multi-user access from Base:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Ensure you&amp;#039;ve setup the Class Path to &amp;#039;&amp;#039;&amp;#039;hsqldb.jar&amp;#039;&amp;#039;&amp;#039; as outlined above.&lt;br /&gt;
**NOTE: Class Path setup is required on the server &amp;#039;&amp;#039;and&amp;#039;&amp;#039; on each client using an identical hsqldb.jar file.&lt;br /&gt;
&lt;br /&gt;
*Ensure [http://forum.openoffice.org/en/forum/viewtopic.php?p=257585#p257585 HSQLDB is running in server-mode] either locally or on a network computer with an accessible database folder.&lt;br /&gt;
&lt;br /&gt;
*Download this pre-configured Base front-end file: &amp;#039;&amp;#039;&amp;#039;[http://www.mediafire.com/download.php?k81kqq92uz2s144 mydb.server.odb]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
*Open it in Base, &lt;br /&gt;
*Then click on the Tables icon to access an existing &amp;#039;split-database&amp;#039; in the same folder (a new database is created automatically if none exists)...&lt;br /&gt;
*...and you&amp;#039;re done!&lt;br /&gt;
**Note: The provided Base file is configured for &amp;quot;server-mode&amp;quot; (multi-user capable) access to the associated HSQL database. The database files are created automatically in the same folder as the Base file (mydb.server.odb) with the prefix &amp;#039;mydb&amp;#039;. If a database named &amp;#039;mydb&amp;#039; is already present in the folder, and that database is currently running in server-mode, then Base will simply be connected to the existing database. For instance, you may have created a database named &amp;#039;mydb&amp;#039; in that folder using &amp;#039;mydb.file,odb&amp;#039; which runs HSQLDB automatically in file-mode. It&amp;#039;s best to save all server-mode batch/script files used to start-up/shutdown the HSQLDB server in each database folder as well. Also consider [http://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=47098 this Windows app] for server-mode management.&lt;br /&gt;
**Note: Any Base front-end file (.odb) created with the &amp;#039;Connect to an existing database&amp;#039; wizard may be re-configured for &amp;#039;server-mode&amp;#039; access. This includes both &amp;#039;mydb.file.odb&amp;#039; and &amp;#039;mydb.server.odb&amp;#039;. Simply make a copy of the (.odb) file and follow the steps below to re-configure the file. Access these settings in an existing Base .odb file from the menu bar: &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;E&amp;lt;/u&amp;gt;dit &amp;gt; Data&amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;ase &amp;gt; &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;roperties...&amp;#039;&amp;#039;&amp;#039; If this option is not available in Base, then your .odb file was created with the wrong Base wizard, so a new .odb file must be created as follows (don&amp;#039;t worry, you can [https://forum.openoffice.org/en/forum/viewtopic.php?f=83&amp;amp;t=65980 extract your existing embedded-database], while migrating your queries, forms, etc. in most cases).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;Alternatively&amp;#039;&amp;#039;&amp;#039; ...you can create this Base .odb file manually using the &amp;#039;&amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&amp;#039; Base wizard as follows:&lt;br /&gt;
***Select: &amp;#039;&amp;#039;&amp;#039;File&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;New&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Database&amp;#039;&amp;#039;&amp;#039; -or- Press: &amp;#039;&amp;#039;&amp;#039;Ctrl-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Option: &amp;#039;&amp;#039;&amp;#039;Connect to an existing database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Select Connection type: &amp;#039;&amp;#039;&amp;#039;JDBC&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039; and fill-in the &amp;#039;Data Source URL&amp;#039; and &amp;#039;JDBC driver class&amp;#039; [http://user.services.openoffice.org/en/forum/viewtopic.php?p=168679#p168679 as follows]:&lt;br /&gt;
***Data Source URL (server mode): &amp;#039;&amp;#039;&amp;#039;hsqldb:hsql://&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;localhost&amp;#039;&amp;#039; or &amp;#039;&amp;#039;IP-address:port&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on the local machine: &amp;#039;&amp;#039;hsqldb:hsql://localhost/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
****For example with HSQLDB running on a network computer: &amp;#039;&amp;#039;hsqldb:hsql://192.168.1.101/;default_schema=true;get_column_name=false&amp;#039;&amp;#039;&lt;br /&gt;
***JDBC driver class: &amp;#039;&amp;#039;&amp;#039;org.hsqldb.jdbcDriver&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Class&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate Class Path setup issues&lt;br /&gt;
*****Each client must have a local copy of hsqldb.jar with the Class Path setup locally&lt;br /&gt;
****Errors may indicate JDBC driver class syntax issues such as a space after the string: org.hsqldb.jdbcDriver&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Next &amp;gt;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***User name: &amp;#039;&amp;#039;&amp;#039;SA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***Password required: leave un-checked at this stage&lt;br /&gt;
***Press: &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
****Errors may indicate that HSQLDB is not running in server-mode&lt;br /&gt;
****Errors may indicate database authentication issues. Check user name and password&lt;br /&gt;
****Errors may indicate folder access privileges imposed by the operating system and managed by the system administrator&lt;br /&gt;
****Errors may indicate network issues: database folder is not accessible from the client computer&lt;br /&gt;
****Errors may indicate network issues: Data Source URL syntax reflects the wrong IP address or port for the database server&lt;br /&gt;
****Errors may indicate network issues: Router or firewall is blocking the default port 9001 (or 554 if encrypted) to the database server&lt;br /&gt;
**NOTE: each client should have a local installation of *Office with Class Path setup as previously outlined. And it&amp;#039;s probably best to distribute separate Base (.odb) front-end files to each client in order to maximize stability and flexibility (custom user Queries, Forms, Reports, etc.). Windows clients can even run *Office/Base portably from USB flash drive with confidence (data reliability) in client-server configurations since no critical data is stored in the Base file or otherwise on the flash drive (see  [http://portableapps.com/apps/office/libreoffice_portable LibreOffice Portable] &amp;amp; [http://portableapps.com/apps/utilities/java_portable JavaPortable]). On the other hand, it may be advantageous to maintain a single, shared, Base (.odb) file exclusively on the database host computer in order to ease administration and distribution tasks overall, particularly in the early phases of production use. Again, the Base file contains only front-end components, which are easily replaced with any old backup. So critical production data is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; at risk even if Base crashes in this configuration due to the [http://en.wikipedia.org/wiki/Database_transaction transactional nature] of the HSQLDB engine. All critical production data is maintained on the database host computer (server) in this client-server configuration.&lt;br /&gt;
**NOTE: A database &amp;#039;server&amp;#039; does not imply a specialized server operating system. Any available networked computer capable of running *Office and Java will do as the database host (shared folder and HSQLDB server). A modern laptop with battery can be a good choice due to battery backup automation, while offering both wired and encrypted wireless access. User authentication is best handled by the database engine (RDBMS), with true security requiring protocol- and database-encryption. These features and more are available with HSQLDB 2.x, H2, and Apache Derby, as well as with enterprise-oriented options listed above.&lt;br /&gt;
&lt;br /&gt;
=== How do I determine which version of HSQLDB is in use with Base? ===&lt;br /&gt;
In Base, open the SQL console: &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SQL...&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect the default HSQLDB 1.8.0.10 engine, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Call &amp;quot;org.hsqldb.Library.getDatabaseFullProductVersion&amp;quot;()&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*If you suspect HSQLDB 2.x, then type-in (copy &amp;amp; paste):&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Select DISTINCT DATABASE_VERSION() as &amp;quot;HSQL Version&amp;quot; From INFORMATION_SCHEMA.SYSTEM_TABLES&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Database Conversions ==&lt;br /&gt;
&lt;br /&gt;
=== How to convert a table to CSV ===&lt;br /&gt;
&lt;br /&gt;
# register the database under &amp;quot;Tools &amp;gt; Options &amp;gt; OpenOffice.org Base &amp;gt; Databases&amp;quot;&lt;br /&gt;
# open a calc sheet&lt;br /&gt;
# press F4&lt;br /&gt;
# choose the table in your database&lt;br /&gt;
# copy the content into the calc sheet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== dBase ==&lt;br /&gt;
&lt;br /&gt;
=== How can I, in dBase, create queries for more than one table? ===&lt;br /&gt;
&lt;br /&gt;
You cannot. Queries spanning more than one table are currently not supported in OpenOffice.org&amp;#039;s own dBase implementation. There is an [http://www.openoffice.org/issues/show_bug.cgi?id=8949 issue requesting this], so if you&amp;#039;re interested in this feature, go and [http://www.openoffice.org/issues/showvotes.cgi?voteon=8949 vote for it].&lt;br /&gt;
&lt;br /&gt;
=== Why can&amp;#039;t I delete a record in my dBase Table? ===&lt;br /&gt;
&lt;br /&gt;
You probably checked the &amp;quot;Display deleted records as well&amp;quot; option in &amp;lt;code&amp;gt;Edit|Database|Properties&amp;lt;/code&amp;gt;, didn&amp;#039;t you?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
=== How can I import a spreadsheet table to a database? ===&lt;br /&gt;
&lt;br /&gt;
(answer originally provided by Regina Henschel in users@dba.openoffice.org)&lt;br /&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
* You can create a database file which gives you access to the calc-table. You cannot alter the table within base, instead you must use the calc-table&lt;br /&gt;
* You can create a new database file and import your calc table.&lt;br /&gt;
&lt;br /&gt;
I prefer to use the second way:&lt;br /&gt;
* Create a new, empty database or open an existing one. Leave it open.&lt;br /&gt;
* Open your Spreadsheet-table.&lt;br /&gt;
* Select your data in the Calc-table and copy them into the Clipboard.&lt;br /&gt;
* Go to the databasefile and use Edit - Paste.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog, which leads you through the import.&lt;br /&gt;
&lt;br /&gt;
Instead of copy &amp;amp; paste, you can also use drag &amp;amp; drop.&lt;br /&gt;
* Reduce the windows so that you can see the Database pane of the databasefile window beside the calc table.&lt;br /&gt;
* Mark all your data in the Calc-table, including the headings.&lt;br /&gt;
* Drag them to the database file window and drop them to the &amp;quot;Tables&amp;quot;-Icon in the Database-pane.&lt;br /&gt;
&lt;br /&gt;
You will get the &amp;quot;Copy Table&amp;quot; dialog too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Forms ==&lt;br /&gt;
&lt;br /&gt;
=== How do I create a form with a sub form? ===&lt;br /&gt;
Look [http://documentation.openoffice.org/HOW_TO/data_source/how_to_link_tables_using_named_parameters.sxw here] for an excellent document (OpenOffice.org Text Document, 850K) giving you a step-by-step description.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== I can access my tables with *Office, but I can&amp;#039;t update or insert any data - why? ===&lt;br /&gt;
&lt;br /&gt;
There are three possible reasons (counting the frequent ones only :):&lt;br /&gt;
&lt;br /&gt;
* *Office requires a table (or, more specifically, the data in a row set) to contain a primary key or a a unique index in order to allow data manipulation. Alternatively, it suffices if the driver supports bookmarks (like some ODBC drivers or the internal dBase implementation do). &amp;lt;br/&amp;gt; The reason for this is that this is the only secure way to ensure that the changes you do affect the proper record (in case of updates), resp. that you, later on, can work with your newly inserted record.&lt;br /&gt;
* You are using a spreadsheet, a text (CSV/TXT), or an address data source. All of these are not yet writable. It&amp;#039;s not a bug, it&amp;#039;s a missing feature.&lt;br /&gt;
* *Office asks the database (in reality its the databases driver) for the privileges (if any) the current user has for the table you want to access. If the driver doesn&amp;#039;t report that you have INSERT/UPDATE permissions, then the respective functionality is disabled in *Office. There are various drivers out there (for various databases, most often reported is MySQL) which handle the permissions improperly, and return wrong or too few privileges. Please try the latest possible driver for your database.&lt;br /&gt;
&lt;br /&gt;
=== Which Database Type do I use? ===&lt;br /&gt;
*Q: I&amp;#039;m asked which database type I use - how do I know?&lt;br /&gt;
*A: If you don&amp;#039;t know, it&amp;#039;s probably [http://wiki.services.openoffice.org/mwiki/index.php?title=Category:HSQLDB HSQLDB]. To be sure, open the database document (.odb) in OpenOffice.org, and look into the middle part of the status bar at the bottom of the main window. It should read something like &amp;quot;HSQL database engine&amp;quot;, &amp;quot;JDBC&amp;quot;, &amp;quot;MySQL (ODBC)&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
=== How are my Address Book fields mapped to OpenOffice.org columns? ===&lt;br /&gt;
&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/LDAP_field_mapping.html LDAP field mapping]&lt;br /&gt;
* [http://dba.openoffice.org/FAQ/Outlook_field_mapping.html Outlook/Express field mapping]&lt;br /&gt;
&lt;br /&gt;
=== Why does my table show the wrong number of records? ===&lt;br /&gt;
&lt;br /&gt;
Base developers chose not to load all records for performance and bandwidth reasons. Unfortunately, they also chose to inform you of this incremental approach by displaying a count of only the loaded records. So initially, Base will report a smaller number of records than you actually have.&lt;br /&gt;
To indicate this, Base will show a small asterisk (*) after the record count. So a number without asterisk &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; means there a total of 23 records in your table, while &amp;lt;code&amp;gt;23 (*)&amp;lt;/code&amp;gt; means there are 23 &amp;lt;em&amp;gt;known&amp;lt;/em&amp;gt; records currently loaded, but there are additional unloaded records in the table/result-set.&lt;br /&gt;
&lt;br /&gt;
This record-count display philosophy is not related to performance or bandwidth considerations. Record count retrieval is instantaneous. It&amp;#039;s a poor design, but some workarounds may suffice ([http://forum.openoffice.org/en/forum/viewtopic.php?p=105520#p105520 SubForm workaround] / [http://forum.openoffice.org/en/forum/viewtopic.php?p=223734#p223734 macro workaround]).&lt;br /&gt;
&lt;br /&gt;
=== Why is searching in my form/table so incredibly slow? ===&lt;br /&gt;
&lt;br /&gt;
This is because when you &amp;lt;em&amp;gt;search&amp;lt;/em&amp;gt; (as opposed to &amp;lt;em&amp;gt;filter&amp;lt;/em&amp;gt;) the data with OpenOffice.org, then Base retrieves all the data from the server, and looks up itself, instead of letting the server do this. This, of course, is slow. But, though *Office&amp;#039;s search is probably not the fastest possible on earth, it&amp;#039;s more a problem of you doing the wrong thing to get the right results. &amp;lt;em&amp;gt;Filter&amp;lt;/em&amp;gt; your form, to let the server do the work.&lt;br /&gt;
More information is available in the [http://dba.openoffice.org/servlets/ReadMsg?msgId=735536&amp;amp;listName=users archive of our mailing list].&lt;/div&gt;</summary>
		<author><name>Dacm</name></author>
	</entry>
</feed>