Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I connect VB6 to ORACLE8

Status
Not open for further replies.

dafty

Programmer
Jul 21, 2001
40
TH
i found the "oradc(oracle data control)" but i don't know how to use it. And Do you have another way to connect to oracle8 by VB6
 
dim cnConnection as ADODB.connection

Set cnConnection = Createobject("ADODB.Connection")

cnConnection.connectionstring = "provider=MSDAORA;data source=NAMEofYourSERVER;user id=YourUserName;password=YourPassword"

cnConnection.Open

'You can also use the ODBC driver for ORACLE. Here is the syntax for the connection string:
"driver={Microsoft ODBC for ORACLE};server=SERVER;uid=UserName;pwd=Password"
 
dear woyler,

i just a see in my computer and it have the OLE help in my oracle group. i will find to solve my problem by it. thank u. your answer help me much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top