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:
- 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.
- Click the Add button and choose the Microsoft Access Driver then
click the Finish button.
- In the Data Source Name input box, type "AccessDB".
- In the Database area, Click the Select button. Select the AccessDB.mdb
database file located in [Instant ASP Installation Directory]/samples/database
- Click the OK button in the Select Database dialog box.
- Finally, click the OK button in the ODBC Microsoft Access Setup
dialog box to finish data source configuration.
- 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:
- Install Sequelink Server and ODBC Service on the Windows PC.
NOTE: For more information on Sequelink
products, please see the Sequelink website.
- 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)
- Change HostID to your machine's IP address on which the Sequelink
server is installed.
Cloudscape
- Install Cloudscape on your web server according to the manufacturer's
instructions.
NOTE: For more information on Cloudscape
products, please see the Cloudscape website.
- 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.
- Make sure that the cloudscapeDB directory exists under [iASP installed
directory]/samples/database/.
Oracle
- Start your Oracle server.
- Run OracleDB.sql under <iASP installed directory>/samples/database
in Oracle tool SQL PLUS.
- Install Oracle's JDBC thin driver according to the manufacturer's
instructions.
- If you select 'oracle.jdbc.driver.OracleDriver (Oracle)' option,
follow the procedure below:
- Set the following environment variable on your machine running
web server:
CLASSPATH = $ORACLE_HOME/lib/CLASSES111.zip" or "$ORACLE_HOME/lib/CLASSES102.zip
- 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.
- If you selected 'intersolv.jdbc.sequelink.SequeLinkDriver (Oracle)'
option, follow the procedure below:
- Install Sequelink Server and Oracle Service on the Windows PC.
NOTE: For more information on
Sequelink products, please see the Sequelink website.
- Set sequelink/classes11 or sequelink/classes102 as environment
variable CLASSPATH's value on computer running your web server.
For example: CLASSPATH=c:/sequelink/classes11)
- Change HostIP to your machine's IP address which Sequelink server
installed on.
SQL Server
- Start your SQL Server.
- 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
- Open the Control Panel on the Windows PC running your web server.
- 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.
- Click the Add button and choose the SQL Server, and then click the
Finish button.
- In the Name input box, type "SQLServerDB".
- In the Server dropdown list, select one server name that you want
to use (for example: [local]), and then click the Next button.
- Select the Option "With SQL Server authentication using a login
ID and password entered by the user".
- In the Login ID input box, type "sa" and leave the password
input box blank, and then click the Next button.
- Make sure the dropdown list's selection item is "Change the
default database to:" is true.
- In the dropdown list, select SQLServerDB database, and then click
the Next button.
- You can change the other settings or just leave them alone. And
then click the Finish button.
- You can click the Test Data Source... button to perform a test
or directly click the OK button.
- 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
- Install Sequelink Server and SQL Server Service on the Windows PC.
NOTE: For more information on Sequelink
products, please see the Sequelink website.
- 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
- Change HostIP to the machine IP address on which Sequelink server
is installed.
MySQL
- Start MySQL and change directory to MysqlInstallDirecter/bin, execute
the following command lines: msqladmin create MysqlDB mysql
- Execute every sentence in MysqlDb.sql under <iASP installed directory>/samples/database/
in MySQL.
- 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)
- 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.
- 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
- Start your Informix server.connect to '@<Server name>';
- 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.
- To run this sample, click the Run hyperlink of the sample page and
then select "com.informix.jdbc.IfxDirver" in the Driver dropdown
list.
- 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
- Start your Sybase server.
- Run SybaseDB.sql under <iASP installed directory>/samples/ in Sybase
tool SQL Advantage.
- 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.
- 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
- Start your PostgreSQL server .
- Run 'psql -f <fname> -d <DBName> ' to execute PostgresDB.sql
file.
- To run this sample, click the Run hyperlink of the sample page and
then select "postgresql.Driver" in the Driver dropdown list.
- 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.
|