Académique Documents
Professionnel Documents
Culture Documents
----------------------------------------- -------- ---------------------------TRAINNO SRC DEST ARRTIME DEPTIME CPP TOTSEATS SEATSBOOKED SEATSAVAIL NUMBER VARCHAR2(15) VARCHAR2(15) NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER
----------------------------------------- -------- ---------------------------BOOKID TRAINNO NAME SRC DEST ARRTIME DEPTIME DOJ NOS CPP STUDENT COLLEGE TOT VARCHAR2(15) NUMBER VARCHAR2(15) VARCHAR2(3) VARCHAR2(3) NUMBER NUMBER DATE NUMBER NUMBER VARCHAR2(15) VARCHAR2(50) NUMBER
Enter value for trainno: 1116 old 1: INSERT INTO TRAINNO VALUES('&SRC','&DEST',&TRAINNO) new 1: INSERT INTO TRAINNO VALUES('AHM','CBT',1116)
1 row created. To enter the next value, press front slash(/) and press enter. SQL> /
To create DSN in control Panel: 1. GoTo control panel and select Administrative Tools . 2. Select DataSources(ODBC). 3. Click Add Button. 4. Now select Oracle in OraHome9. (It may vary to your system ammu..) It may be oracle in OraHome90 in your system.
5. Click finish button. 6. Now give the Data source name, TNS service name, User ID. The TNS service name also varies in your system ammu. In your system, it may be oracle or else.
Click the Test Connection button. Now This window will be open.
Type the password as tiger and click OK. Now the connection is successful message will come.
Open your visual basic Railway reservation project. In form, frmTrainEnquiry right click on the train number ADODC control and select properties.
Now select the DSN name from combo box which we already created using control panel:
Click Authentication tab and enter User name: scott Password : tiger
Click OK. Then select Traindetails ADODC control. Right click on the control and select ADODC properties.
Now select the DSN name from combo box which we already created using control panel:
Click Authentication tab and enter User name: scott Password : tiger
Click OK. Then Set the Data source, data field properties for all the controls.. Thats it.