princessk1
Programmer
I am trying to set up an ODBC connection but am having problems with the syntax. Does any one have any sample code for this? Thanks.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
Dim objDC, objRS
' Create and establish data connection
Set objDC = Server.CreateObject("ADODB.Connection")
objDC.ConnectionTimeout = 15
objDC.CommandTimeout = 30
'Code to connect to Oracle Warehouse
objDC.Open "Provider=MSDAORA.1;Password=yourpass;User ID=yourid;Data Source=tnsnamesentryhere;Persist Security Info=TRUE"
%>