DBMS Assignment
DBMS Assignment
RAILWAY RESERVATION
SYSTEM
BATCH 9
MEMBERS
1.PREETHI SHREE . B
2.MEGAVARTHINI N.M
3.NANDHINI C.L
4. SAHANA PRIYADHARSHINE T.S.S
AIM:
To design and implement Library management system using visual basic 6.0.
VIRTUAL BASIC:
CONNECTIVITY:
1. Open the VB 6.0 in standard exe form and right circle in the tool box select
2. components.
3. Select MSADO data control 6.0 COLEB in component list.
4. Double circle ADDCDC and then select the properties.
5. Select MSOLE DB provides for ODBC drivers in provider.
ALGORITHM:
1. Place all the controls in the form as shown.
2. To place the ADO controls do the following procedure.
3. Go to project -> Component.
4. Select the checkbox showing “MICROSOFT ADO DATA CONTROL”and
Press
Apply-> close.
5. Place the ADO control on the form.
6. Create a table in SQL plus and insert some values in it.
7. Now type the command ‘commit;’ and return back to VB.
8. Select the ADO control and click the right mouse select ADODC properties.
9. A dialog box will appear, press the build button. Select ‘Microsoft OLEDB
provider for oracle” press next button”.
10. In the connection tab, give the server name, user name and password.
11. Press the” TEST CONNECTION” button. A message box will appear if the
steps
were followed correctly. Press OK button.
12. Select authentication tab. Give the username and password again. Select
record
source tab. In the table or stored procedure name control box, select the name
and
give OK.
13. Now select the text buttons one by one and in the properties window set the
data
sources combo box to point to ADODC1.select the corresponding fields of the
text box in the data fields combo box
14. Write the coding for command buttons and run the form.
DATA REPORT:
1. Go to Project->Components->Designers->Data Report,Data Environment and
click Apply,then OK.
2. In Project Explorer ->Form1->Right Click-> Add->Data Environment, Data
Report.
3. In Data Environment1, Right Click on Connection1->Properties->Provider->
Microsoft OLE DB provider for Oracle ->Next-> Server-orcl, User-
Csec37, Password-csec37 Test Connection->Test Connection
Succeeded->OK->OK
4. In Data Environment1,
Right Click on Connection1->Add Command->Command1
5. In Command1, Right Click->Properties->Database Object-Table, Object Name
ITB67.BANK ->Apply, then OK
6. Drag Command1 into Detail Section of Data Report1 and Make Alignments
7. In Property Window of DataReport1,
change Data Source-Data Environment1 Data Member-Command1.
DATABASE SCHEMA:
Table created.
Commit;
Commit completed.
FORM DESIGN:
MDI FORM
FORM 1:
Private Sub Command1_Click()
Adodc1.Recordset.addnew
End Sub
DATA REPORT:
RESULT: