Click to See Complete Forum and Search --> : Help: Connecting to oracle using VB frontend.


tthom
08-16-2001, 07:08 PM
Hi,

I am using Oracle as my database and
Vb and C++ as front end. The only problem is
How do I go about in connecting the Oracle
database with VB using the ADODB.Connection object, using OLEDB. Is there any sites where i can find sample code for this? API? Links? Sample tutorials? ETc? Any help is greatly appreciated. thx

Tim

moomin
08-17-2001, 01:17 AM
Dim strConnectString as String

Dim objConn as ADODB.connection
set objConn = new ADODB.connection

strConnectString = "Provider=MSDAORA;Data Source=serverName;User ID=userName; Password=userPassword;"

objConn.connectstring = strConnectString

objConn.open

rbala_sub
08-17-2001, 04:15 AM
You can check out oracle documentation for using Oracle OLE objects with VB/VC++

Bala