Here's an ADO example:
<pre>Dim adoCn As New ADODB.Connection
Dim sConString As String
sConString = "Provider=MSDAORA.1;Password=<your password>;" _
& " User ID=<your user name>;Data Source=<your oracle database alias>;" _
& " Persist Security Info=True"
With adoCn
.ConnectionString = sConString
.CursorLocation = adUseClient
.ConnectionTimeout = 30
.Open
End With
'...
'... do your database operations
'...
adoCn.Close</pre>
Note that you need to add a reference to the ActiveX Data Objects library to your porject, and you have to have the oracle client software installed.
Last Wiki Answer Submitted: December 2, 2009 5:53 pm by carlosdl63,535 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.