21.08.2013 Views

OpenOffice.org BASIC Guide - OpenOffice.org wiki

OpenOffice.org BASIC Guide - OpenOffice.org wiki

OpenOffice.org BASIC Guide - OpenOffice.org wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10<br />

C H A P T E R 1 0<br />

10 Databases<br />

<strong>OpenOffice</strong>.<strong>org</strong> has an integrated database interface (independent of any systems) called Star Database<br />

Connectivity (SDBC). The objective of developing this interface was to provide access to as many different data<br />

sources as possible.<br />

To make this possible, data sources are accessed by drivers. The sources from which the drivers take their data is<br />

irrelevant to a SDBC user. Some drivers access file-based databases and take the data directly from them. Others<br />

use standard interfaces such as JDBC or ODBC. There are, however, also special drivers which access the MAPI<br />

address book, LDAP directories or <strong>OpenOffice</strong>.<strong>org</strong> spreadsheets as data sources.<br />

Since the drivers are based on UNO components, other drivers can be developed and therefore open up new data<br />

sources. You will find details about this in the <strong>OpenOffice</strong>.<strong>org</strong> Developer's <strong>Guide</strong>.<br />

Note – VBA : In terms of its concept, SDBC is comparable with the ADO and DAO libraries available in<br />

VBA. It permits high level access to databases, regardless of the underlying database backends.<br />

SQL: a Query Language<br />

The SQL language is provided as a query language for users of SDBC. To compare the differences between<br />

different SQL dialects, the SDBC components from <strong>OpenOffice</strong>.<strong>org</strong> have their own SQL parser. This uses the<br />

query window to check the SQL commands typed and corrects simple syntax errors, such as those associated with<br />

uppercase and lowercase characters.<br />

If a driver permits access to a data source that does not support SQL, then it must independently convert the<br />

transferred SQL commands to the native access needed.<br />

Types of Database Access<br />

The database interface from <strong>OpenOffice</strong>.<strong>org</strong> is available in the <strong>OpenOffice</strong>.<strong>org</strong> Writer and <strong>OpenOffice</strong>.<strong>org</strong> Calc<br />

applications, as well as in the database forms.<br />

In <strong>OpenOffice</strong>.<strong>org</strong> Writer, standard letters can be created with the assistance of SDBC data sources and these can<br />

then be printed out. You can also move data from the database window into text documents using the drag-anddrop<br />

function.<br />

If you move a database table into a spreadsheet, <strong>OpenOffice</strong>.<strong>org</strong> creates a table area which can be updated at the<br />

click of the mouse if the original data has been modified. Conversely, spreadsheet data can be moved to a<br />

143

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!