Connecting Database Instructions for Running ADO Samples

This page provides configuration instructions for the following databases:

Before you can run the ADO samples, you must configure a supported database.

Microsoft Access

    If you select 'sun.jdbc.odbc.JdbcOdbcDriver (Access)' option on Driver combox, follow the procedure below:

    1. Open the Control Panel, double-click the ODBC/ODBC Data Sources and then switch to System DSN Tab.

      NOTE: The System DSN stores information about how to access your database. The System DSN is available to all users of your computer while the User DSN is available only to you, and the File DSN can be shared by users who have the same database drivers installed.

    2. Click the Add button and choose the Microsoft Access Driver then click the Finish button.

    3. In the Data Source Name input box, type "AccessDB".

    4. In the Database area, Click the Select button. Select the AccessDB.mdb database file located in [Instant ASP Installation Directory]/samples/database

    5. Click the OK button in the Select Database dialog box.

    6. Finally, click the OK button in the ODBC Microsoft Access Setup dialog box to finish data source configuration.

    7. Click OK button to close the ODBC/ODBC Data Source Administrator dialog box.

    If you selected 'intersolv.jdbc.sequelink.SequeLinkDriver (Access)' option on Driver combox, follow the procedure below:

    1. Install Sequelink Server and ODBC Service on the Windows PC.

      NOTE: For more information on Sequelink products, please see the Sequelink website.

    2. Set sequelink/classes11 or sequelink/classes102 as environment variable CLASSPATH's value on computer running your web server. 

      For example: CLASS PATH=c:/sequelink/classes11)

    3. Change HostID to your machine's IP address on which the Sequelink server is installed.

Cloudscape

  1. Install Cloudscape on your web server according to the manufacturer's instructions.

    NOTE: For more information on Cloudscape products, please see the Cloudscape website.

  2. Set the following environment variable on your machine running your web server:
    CLASS PATH = c:/cloudscape/lib/embeddedJBMS.zip; c:/cloudscape/lib/client.zip; c:/cloudscape/lib/license.zip; c:/cloudscape/lib/tools.zip;

    NOTE:  Please make sure you customize the paths above for your particular Cloudscape installation.

  3. Make sure that the cloudscapeDB directory exists under [iASP installed directory]/samples/database/.

Oracle

  1. Start your Oracle server.

  2. Run OracleDB.sql under <iASP installed directory>/samples/database in Oracle tool SQL PLUS.

  3. Install Oracle's JDBC thin driver according to the manufacturer's instructions.

  4. If you select 'oracle.jdbc.driver.OracleDriver (Oracle)' option, follow the procedure below:

    1. Set the following environment variable on your machine running web server:
      CLASSPATH = $ORACLE_HOME/lib/CLASSES111.zip" or "$ORACLE_HOME/lib/CLASSES102.zip

    2. Change HostIP to your machine's IP address which Oracle server installed on and change bird to the Oracle SID you would like to use. 

  5. If you selected 'intersolv.jdbc.sequelink.SequeLinkDriver (Oracle)' option, follow the procedure below:

    1. Install Sequelink Server and Oracle Service on the Windows PC.

      NOTE: For more information on Sequelink products, please see the Sequelink website.

    2. Set sequelink/classes11 or sequelink/classes102 as environment variable CLASSPATH's value on computer running your web server. 

      For example: CLASSPATH=c:/sequelink/classes11)


    3. Change HostIP to your machine's IP address which Sequelink server installed on.

SQL Server

  1. Start your SQL Server.

  2. Run sqlserverDb.sql with SQL Server tool Query Analyzer on the Windows PC running your web server.


For the 'sun.jdbc.odbc.JdbcOdbcDriver (SQLServer)' option

    1. Open the Control Panel on the Windows PC running your web server.

    2. Double-click the ODBC/ODBC Data Sources icon and then switch to the System DSN tab.

      NOTE: The System DSN stores information about how to access your database. The System DSN is available to all users of your computer while the User DSN is available only to you, and the File DSN can be shared by users who have the same database drivers installed.

    3. Click the Add button and choose the SQL Server, and then click the Finish button.

    4. In the Name input box, type "SQLServerDB".

    5. In the Server dropdown list, select one server name that you want to use (for example: [local]), and then click the Next button.

    6. Select the Option "With SQL Server authentication using a login ID and password entered by the user".

    7. In the Login ID input box, type "sa" and leave the password input box blank, and then click the Next button.

    8. Make sure the dropdown list's selection item is "Change the default database to:" is true.

    9. In the dropdown list, select SQLServerDB database, and then click the Next button.

    10. You can change the other settings or just leave them alone. And then click the Finish button.

    11. You can click the Test Data Source... button to perform a test or directly click the OK button.

    12. Finally, click the OK button to close the ODBC Data Source Administrator dialog box and finish data source configuration. 

      NOTE: When run WebAccess sample, the operation of Deleting Column will not be supported if your SQL Server version is lower than 7.0.

    'intersolv.jdbc.sequelink.SequeLinkDriver (SQLServer)' option

    1. Install Sequelink Server and SQL Server Service on the Windows PC.

      NOTE: For more information on Sequelink products, please see the Sequelink website.

    2. Set sequelink/classes11 or sequelink/classes102 as environment variable CLASSPATH's value on the computer running your web server. 

      For example: CLASSPATH=c:/sequelink/classes11


    3. Change HostIP to the machine IP address on which Sequelink server is installed.

MySQL

  1. Start MySQL and change directory to MysqlInstallDirecter/bin, execute the following command lines: msqladmin create MysqlDB mysql

  2. Execute every sentence in MysqlDb.sql under <iASP installed directory>/samples/database/ in MySQL.

  3. Download MySQL JDBC Driver and Set twz1jdbcForMysql.jar or Mysql.jar as environment variable CLASSPATH's value on computer running your web server.(e.g. CLASSPATH=c:/mysql/Mysql.jar)

  4. To run this sample, click the Run hyperlink of the sample page and you can select "twz1.jdbc.mysql.jdbcMysqlDirver (MySQL)" or "org.gjt.mm.mysql.Driver (MySQL)" in the Driver dropdown list.

  5. In the URL input box, change <Host IP> to your Server host IP address where your MySQL located and then click the Open Database button.

 Informix

  1. Start your Informix server.connect to '@<Server name>';

  2. First modify InformixDb.sql under <iASP installed directory>/samples/database/. That is say change @<Server Name> in the first row into your Informix Server Name.

    Then run InformixDB.sql in Informix tool SQL Editor.

  3. To run this sample, click the Run hyperlink of the sample page and then select "com.informix.jdbc.IfxDirver" in the Driver dropdown list.

  4. in the URL input box, change <Host IP> to your Server host IP address where your Informix located and then click the Open Database button.

 Sybase

  1. Start your Sybase server.

  2. Run SybaseDB.sql under <iASP installed directory>/samples/ in Sybase tool SQL Advantage.

  3. To run this sample, click the Run hyperlink of the sample page and then select "com.sybase.jdbc2.jdbc.SybDriver" in the Driver dropdown list.

  4. in the URL input box, change <Host IP> to your Server host IP address where your Sybase located and then click the Open Database button.

Postgres For Linux

  1. Start your PostgreSQL server .

  2. Run 'psql -f <fname> -d <DBName> ' to execute PostgresDB.sql file.

  3. To run this sample, click the Run hyperlink of the sample page and then select "postgresql.Driver" in the Driver dropdown list.

  4. in the URL input box, change <Host IP> to your Server host IP address where your PostgreSQL located and then click the Open Database button.

Copyright © 1998-2002, Halcyon Software Inc. All rights reserved.