Application Development: Tutorials
11.1.1 Tutorial - I
The aim of this tutorial is to:
Create a simple table 'Test' in Oracle9i with two attributes 'RegNo' and 'Name'and develop an application in VB6.0 to add new records, browse, modify, anddelete the records.
We shall assume the following hardware and software:
Operating System: Windows XP ProfessionalDatabase: Oracle 9iFront-End Tool: VB 6.0
Step-1: Go to the SQL window. Click on Start > All programs > Oracle-OraHome90> Application Development > SQL Plus.Step-2: Type the following code in the SQL prompt:CREATE TABLE Test (RegNo VARCHAR2(10),Name VARCHAR2 (20) NOT NULL,PRIMARY KEY(RegNo));Step-3: Click Start > Control Panel > Administrative tools > Data Sources(ODBC).Step-4: Press
button and enter a name for the DSN (Data Source Name). Leave the restblank. In this example,
it is named as “Elective”.
The screenshots of Step-3 and Step-4 are shown below: