If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > cionnect to oracle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-04, 10:42
sg_kaveh sg_kaveh is offline
Registered User
 
Join Date: Oct 2004
Posts: 2
cionnect to oracle

I want to connect to oracle in asp 3.0
please help me
Reply With Quote
  #2 (permalink)  
Old 10-13-04, 19:33
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
it depends in the method you are using to connect, but here are the details for using ODBC (uncomment the string you require and change to include your database details).
Code:
Dim oConn
set oConn = Server.CreateObject("ADODB.Connection")
'For the current Oracle ODBC Driver from Microsoft
'oConn.Open "Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=myUsername;Pwd=myPassword"

'For the older Oracle ODBC Driver from Microsoft
'oConn.Open "Driver={Microsoft ODBC Driver for Oracle};ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword"

' ODBC Driver for Oracle - from Oracle 
'oConn.Open "Driver={Oracle ODBC Driver};Dbq=myDBName;Uid=myUsername;Pwd=myPassword"
Connection strings taken from http://www.able-consulting.com/MDAC/...eFromMicrosoft
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On