xml spy
Previous  Top  Next

Data Sources


In order to query a database, you have to first connect to the required database This section describes how to:

 

Connect to a database, and
Select the required data source and root object from among multiple existing connections.

 

 

Connecting to a database

When you click the Query Database command in the View menu for the first time in a session (and when no database connection exists), the Quick Connect dialog (screenshot below) pops up to enable you to connect to a database. To make connections subsequently, click the Quick Connect icon ic_quickconnect in the Database Query window. If connections already exist, you can select the required connection from among these.

 

DBQuery_QuickConnectDlg1

 

How to connect to a database via the Quick Connect dialog is described in the section Connecting to a Data Source.

 

 

Supported databases and their root objects

The following databases are supported. After connecting to the database, the available root objects for each of the supported database is as follows:

 

Database

Root Object

MS SQL Server 2000 and 2005

database

Oracle 9i and 10g

schema

MS Access 2003 and 2007

database

MySQL 4.x and 5.x

database

IBM DB2 8.x and 9

schema

Sybase 12

database

IBM DB2 for iSeries v4

schema

IBM zSeries for DB2 8 and greater

schema

 

Please note:

Stylevision fully supports the databases listed above. While Altova endeavors to support other ODBC/ADO databases, successful connection and data processing have only been tested with the listed databases.

 

Selecting the required data source

All the existing connections and the root objects of each are listed, respectively, in two combo boxes in the toolbar of the Database Query window (screenshot below). After selecting the required data source in the left-hand combo box, you can select the required root object from the right-hand combo box.

 

DBQuerySelectDataSource

 

In the screenshot above, the database with the name StyleVision DB has been selected. Of the available root objects for this database, the root object ALTOVA_USER has been selected. The database and the root object are then displayed in the Browser pane.

 

 


See also:

 

 


 

 


Previous  Top  Next

© 2008 Altova