A: You can connect to the Oracle
database. After you make sure the application
is working with access database you need
to do the following steps by steps.
I am sending you the kit that is used
to connect to Oracle database. You
can use the same in DB2 and see if
it is working:
1- You need to create the sample ReportTable
in your DB2 database and test the application
with this table. I am sending you the
script to create the table .
CREATE TABLE ReportTable (
Name varchar2(30),
JobTitle varchar2 (40),
DeptName varchar2 (60),
ORG_ID int NOT NULL ,
MGR_ID int NOT NULL ,
Picture varchar2 (255),
Email varchar2 (255) ,
Telephone varchar2 (25),
Secretary CHAR(1) NOT NULL ,
Category varchar2 (50) NULL);
ALTER TABLE ReportTable ADD CONSTRAINT
REP_KEY PRIMARY KEY (ORG_ID);
The above SQL is writtem for Oracle.
You may adjust it for DB2
I am also sending the setting.asp which
uses same field names created in this
table plus sql script to add data into
the table plus chart and tree.asp pages.
The last two asp pages use oChart.Oracle
= True to point the DLL into Oracle database.
2- Use the test page called TestConnection.asp.
Modify the dsn and use the DSN that is
working fine pointing to DB2. You can
open TestConnection.asp with interdev
or any editor that you open asp page
or even notepad and change ConnectionString
= "Filedsn=Chart"
to
ConnectionString = your dsn pointing
to DB2.
Run the application and make sure you
don''t get any error. This test verifies
the connection to DB2 is working fine
through Asp.
3- In the last stage after the app is
working with our sample table in DB2,
modify setting.asp page to point to your
view. You need to open setting.asp page
and change:
GetConnectionString = "filedsn=Chart"
to:
GetConnectionString = whatever you used
in TestConnection.asp |