DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   about project (http://www.daniweb.com/forums/thread13232.html)

SUJIT TRIPATHY Oct 31st, 2004 9:35 am
about project
 
What are the visual basic project with backend oracle. how the database connctivity is done with VB .

C. Raghuraja May 25th, 2005 9:01 am
Re: about project
 
Easy Way to Connect Oracle from VB

Install Oracle Client on your system

'Connection Object for Oracle Database connection
Dim con As ADODB.Connection

'Recordset Object for Oracle Tables

Dim rst As New ADODB.Recordset

con.Open "Provider=MSDAORA;Data Source=OracleDataBase;User ID=OracleUserID; Password=OraclePassword;

rst.Open "Select * From OracleTableName"

Do While Not rst.EOF

'Do the Processing here Display etc

Msgbox rst("No")
Msgbox rst("Name")

rst.MoveNext

Loop

rst.close
con.close

set rst = Nothing
Set con = Nothing


All times are GMT -4. The time now is 1:41 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC