Welcome to Dream.In.Code
Become a VB Expert!

Join 149,915 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,171 people online right now. Registration is fast and FREE... Join Now!




CONNECT VB WITH ORACLE

 
Reply to this topicStart new topic

CONNECT VB WITH ORACLE, How can it be connected??

halluzineyt
5 Jan, 2008 - 05:01 AM
Post #1

New D.I.C Head
*

Joined: 2 Jan, 2008
Posts: 10

Sir how can i connect vb with oracle as a database ??
can you give me a hint ??

will i be using adodc?? and just fix the connection string??
User is offlineProfile CardPM
+Quote Post

nealgabriel45
RE: CONNECT VB WITH ORACLE
10 Jan, 2008 - 07:09 AM
Post #2

New D.I.C Head
Group Icon

Joined: 22 Oct, 2007
Posts: 46


Dream Kudos: 50
My Contributions
See the sample Code.. If u hav any doubts contact me on nealgabriel45@aol.com

CODE
Public m_dbConn As ADODB.Connection
Public m_dbCmd As ADODB.Command
m_dbConn.Open "Provider=msdaora;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;"
m_dbCmd.ActiveConnection = m_dbConn

'Recordset
Dim rsTemp as new ADODB.recordset
'Your Query goes here
Dim strQuery as String
strQuery = "select * from table"
rsTemp.Open strQuery,m_dbConn,adOpenStatic,adOpenReadOnly

User is offlineProfile CardPM
+Quote Post

halluzineyt
RE: CONNECT VB WITH ORACLE
12 Jan, 2008 - 05:51 AM
Post #3

New D.I.C Head
*

Joined: 2 Jan, 2008
Posts: 10

tnx dude
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 02:16PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month