iASP_Grid Component: Database Driver

In order to allow iASP_Grid to access database using DSN in different environment, make changes to all the Samples. Choose the database server below and follow the instructions to configure its driver for running with iASP_Grid:

Microsoft Access

  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 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 Microsoft Access Driver then click the Finish button.

  4. In the Data Source Name input box, type "GridTest".

  5. In the Database area, Click the Select button. Select the GridTest.mdb database file located in <iASP_Grid Installation Directory>\samples\database

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

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

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

  9. To run iASP_Grid Samples, set the following parameters in connect method of Samples:

    <Object Name>.connect "sun.jdbc.odbc.JdbcOdbcDriver","jdbc:odbc:<System DSN>","<UserId>","<Password>"

In the samples distributed with iASP_Grid :

  • <System DSN> = GridTest
  • By default UserId = ""
  • By default Password = ""

Oracle

  1. Start your Oracle server.

  2. Run GridTestOracleDB.sql under <iASP_Grid Installed Directory>/samples/database in Oracle tool SQL PLUS.

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

NOTE: If you are running the samples under the Netscape Enterprise Web Server, you need only set the following environment variable:
CLASSPATH = $ORACLE_HOME/lib/CLASSES111.zip or $ORACLE_HOME/lib/CLASSES102.zip

To run iASP_Grid Samples, set the following parameters in connect method of Samples:

<Object Name>.connect "oracle.jdbc.driver.OracleDriver","jdbc:oracle:thin:@<Host IP>:1521:<Oracle SID>","<UserId>","<Password>"

Parameter Description
<Host IP> your Server host IP address where Oracle Server is running.
<Oracle SID> The SID specified when creating the Database (Default is ORCL).
<UserId> The userid specified for the Database (Default UserId = "system").
<Password> The password specified for the Database (Default Password = "manager").

SQL Server

  1. Start your SQL Server and run sqlserverDb.sql with SQL Server tool Query Analyzer on the Windows NT Server running your web server.

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

  3. 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.

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

  5. In the Name input box, type "GridTest".

  6. In the Server dropdown list, select one ServerName that you want to use (Such as: <local>), and then click the Next button.

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

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

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

  10. In the dropdown list, select GridTest database and click the Next button.

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

  12. Your can click the Test Data Source... button to perform a test or directly click the OK button.

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

To run iASP_Grid Samples, set the following parameters in connect method of Samples:

<Object Name>.connect "sun.jdbc.odbc.JdbcOdbcDriver","jdbc:odbc:<System DSN>","<UserID>","<Password>"

  • By default UserId = "sa"
  • By default Password = ""

MySQL

  1. Start MySQL and change directory to MysqlInstallDirecter/bin, then execute following command lines:

    msqladmin create GridTest
    mysql
  1. Execute every sentence in GridTestMySQL.sql under <iASP_Grid installed directory>/samples/database/ in MySQL.

  2. To run iASP_Grid Samples, set the following parameters in connect method of Samples:

    <Object Name>.connect "twz1.jdbc.mysql.jdbcMysqlDriver","jdbc:z1MySQL://<Host IP>:3360/<DataBase Name>","<User ID>","<Password>"
Parameter Description
<Host IP> your Server host IP address where MySQL Server is running.
<Database Name> Specify it as GridTest.
<UserId> The userid specified for the Database (Default UserId = "root").
<Password> The password specified for the Database (Default Password = "").

If you require technical support please send complete details about the problem you are having to support@halcyonsoft.com.


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