473,395 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Provider (0x80040E14) Issue when connecting to an Oracle datase using ASP

Team,

I constantly keep getting this error message:

Error Type:
Provider (0x80040E14)
One or more errors occurred during processing of command.
/asptestpa.asp, line 36

whenever I try to run asptestpa.asp:

------------------------


<html>
<head>
<title> Time Check </title>
<!-- #Include File="ADOVBS.INC"-->
</head>
<body>

</script>

<script language = "vbscript">


<%

' Write out a the current server time' Response.Write "<p>The server time is now: "
Response.Write Time
Response.Write"</p>"

Dim objConn
Dim objCommand

Set objConn = Server.CreateObject("ADODB.Connection") ' This line creates the ActiveX Database Object
Set objCommand = server.createobject("ADODB.Command")

objConn.ConnectionString = "Provider=ADsDSOObject;Password=abcde;User ID=plateau;Encrypt Password=False;Data

Source=GTMSP;Mode=Read;Bind Flags=0;ADSI Flag=-2147483648;"

objConn.ConnectionTimeout = 1
objConn.CommandTimeout = 1
objConn.CursorLocation = adUseClient
objConn.Open 'This commands the database to open
objCommand.ActiveConnection = objConn

objCommand.CommandText = "select * from pa_student"

objCommand.CommandTimeout = 1
set oRS = objCommand.Execute
For i = 0 to oRS.fields.count - 1
Response.Write oRS.Fields(i).Name & ", "
oRS.MoveNext
next
oRS.Close
set oRS = nothing
set objCommand = nothing
objConn.Close
set objConn = nothing
set objConn = nothing
%>

All I am trying to do is query off the pa_student table!!
Aug 10 '07 #1
3 3192
ilearneditonline
130 Expert 100+
objConn.ConnectionString = "Provider=ADsDSOObject;Password=abcde;User ID=plateau;Encrypt Password=False;Data

Well, you are trying to connect to Oracle but you have your provider specified for ADsDSOObject which is used to query active directory. I would suggest this Link which should provide you the proper connection string.
Aug 10 '07 #2
I have already tried that link and I get the the Oracle components error message!!
Aug 10 '07 #3
ilearneditonline
130 Expert 100+
I have already tried that link and I get the the Oracle components error message!!
Try this instead.

Expand|Select|Wrap|Line Numbers
  1. ' lets at least use a connectionstring for oracle, not active directory. 
  2. ' you can't have all that whitespace either. if you use a cariage return, you need to 
  3. ' concat your string.
  4. Dim rs = Server.CreateObject("ADODB.Recordset")
  5. rs.ActiveConnection = "Driver={Microsoft ODBC for Oracle};Server=myServerAddress;Uid=myUsername;Pwd=myPassword;"
  6. rs.Source = "select * from pa_student"
  7. rs.CursorType = adOpenForwardOnly
  8. rs.CursorLocation = adUseServer
  9. rs.LockType = adLockReadOnly
  10. rs.Open()
  11. for i = 0 to rs.fields.count - 1
  12. response.write rs.fields(i).name & ", "
  13. next
  14. rs.Close
Aug 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong...
1
by: David Gamble | last post by:
I am having problems with long timeouts when connecting to or executing commands in SQL Server 2000 SP3. I am writing an application that will be used on laptops within an environment that is...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
2
by: Mahesh.V | last post by:
Hi All I get the following error while connecting to the oracle database using ODBC. in my VB.NET application. Can any one help me out solving this problem server message (if any):...
1
by: kommaraju | last post by:
iam a starter to db2 & jdbc.i have a servlet program which connects to ibm db2 using jdbc.when i run this using apache tomcat 4.1.34 , it is showing a error message of HTTP STATUS 500 my jdbc...
1
by: SayamiSuchi | last post by:
Hi.. I have been assigned to make a database in some remote machine.The machine has MSSQL 2005.I need to connect to that remote machine's sql server via my pc using my SQL Management express.I do...
7
by: cyberbilly1 | last post by:
Hi All! I'm trying to connect to a remote oracle database using the OracleConnection within VB.net . Whenever I try connecting I get a SocketException:No connection could be made because the...
0
by: brioska | last post by:
I have similar too... :( I tried to connect to db2 from sql*plus and report builder. Sql*plus succesfully made the connection with same error message (+same error when I used select or...
0
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.