0% found this document useful (0 votes)
40 views

ADODC Connection

This document provides steps to connect an Oracle database to a Visual Basic form using ADODC (ActiveX Data Objects Data Control). The database side involves creating a table and inserting values. The Visual Basic side involves designing a form, adding an ADODC component, configuring the connection string and authentication, setting the record source to an Oracle table, binding textboxes to fields, and running the program.

Uploaded by

vijayandamul
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

ADODC Connection

This document provides steps to connect an Oracle database to a Visual Basic form using ADODC (ActiveX Data Objects Data Control). The database side involves creating a table and inserting values. The Visual Basic side involves designing a form, adding an ADODC component, configuring the connection string and authentication, setting the record source to an Oracle table, binding textboxes to fields, and running the program.

Uploaded by

vijayandamul
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

ADODC Connection

Database side:

1. Goto to OracleSQL Plus


2. Create the table and insert the values.
3. Using the select * from tablename to view the table values.
4. Save the table using the command commit;

Visual Basic side:

1. Design a form
2. Goto to ProjectComponentsMicrosoft ADO Data control 6.0(OLEBD) select
apply and close it.
3. In the toolbar the ADODC Icon is double clicked it will placed on form
4. Select and right click on ADODC icon and select ADODC Properties
5. In general tab click the build button
6. Select the Oracle provider for OLE DB
7. Click next and give the user name as Scott and password as Tiger
8. Click the test connection button display the message as test connection succeeded
and click ok
9. Using connection string textbox is contains provider name,id,password etc
10. Goto the Authentication tab give the user name as Scott and password as Tiger
11. And click ok
12. Goto Recordsource tab and select command type as 2-adCmd table in table or
stored procedure name select your oracle table name and apply and click OK

13. Select the one by one textbox and goto properties select datasource as ADODC1
14. And datafield as which textbox form example if we select rno textbox means we
select the datafield as rno.
15. At last select the ADODC icon delete or hide it
16. we can run the database connectivity program now

You might also like