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!

connecting to oracle?

Status
Not open for further replies.

JPBURBE

Programmer
Jun 12, 2001
37
CA
How do i connect to an oracle database? Never used it not to sure?
 
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"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top