DataXpress

DataXpress is a sample application that copies data between databases.

This page covers the following topics:

 
Top of page

About the DataXpress application

DataXpress is a sample utility that can be used to copy data between databases and is intended for use primarily in a development environment. It can be used, for example, to copy tables containing modified user data from a design database to a production database.

When copying data using the DataXPress Publish option, it is assumed that the source and target tables have identical schema, including the same number of columns and column names. If you do not already have an existing target table or just want to try the Publish option, use the SilverStream publishing tool to copy the table schema from the source to the target database. You may need to modify the code in DataXpress to develop a data publishing utility that is suitable for your environment. But keep in mind that DataXpress is a sample application and not an officially released feature of the SilverStream Application Server, and will not be supported as such.

 
Top of page

How it works

DataXpress provides three operations. It can import a comma-delimited file to a database table, export a table to a variety of file formats, and publish data from one database to another.

Each operation is represented by a page that accesses the data source through a single updatable data source object. This data source object configures itself dynamically based on the database(s) and table(s) selected by the user. The page invokes a specific business object based on the selected operation. The business object contains a data cache object (agData) that is bound to the data source object. The business object uses the data source object to populate the agData with the rows to be copied from or to the data source, and then returns the appropriate results to the caller.

Before you begin   The databases you use must be synchronized before you use this application.

 
Top of page

How to get started

To run DataXpress:

  1. After installing the DataXpress database, start the Main Designer.

  2. Select the DataXpress database in the left pane of the Main Designer.

  3. Select the Run Database icon:

    The home page is a servlet that is activated when you run the database. The application starts in your browser.

  4. Select one of the three options in the left pane to display the appropriate page. Each page includes step-by-step instructions on how to use the selected operation. Here is a summary:

    Option

    Purpose

    Import

    Use to import a comma-delimited file into a selected database table. The table can be located anywhere on your network, but must be properly formatted to match the target table schema.

    Publish

    Use to copy a table from one database to another database. When using this option note that:

    • The source and target databases must be located on the same SilverStream server

    • The source and target tables can reside in different database types, but the column types and names must match: no explicit conversions are made in this operation.

    Export

    Use to export data from a database to a selected file format. You can use this option, for example, to scan table data. This option provides several export file types, including HTML, Excel spreadsheet, and others.

 
Top of page

DataXpress techniques

    For information about using a dynamically configurable data source object in your applications, see the following techniques in Application Techniques:

 
Top of page

Where to find more information

    For more information about the SilverStream server features used in the DataXpress application, see the following chapters in the Programmer's Guide:


Copyright © 2001, SilverStream Software, Inc. All rights reserved.