473,890 Members | 5,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle Sp: Getting System.Data.Ole Db.OleDbExcepti on: ̸Ώ

I have been using Oracle Helper to connect to my oracle 9i Db. When
excute text it works fine, but when I try to execute a store procedure
I get the following error message. I searched everyplace for a
solution.

System.Data.Ole Db.OleDbExcepti on: ̸Ώ
[OleDbException (0x80004005): ̸Ώ]

System.Data.Ole Db.OleDbCommand .ExecuteCommand TextForMultpleR esults(tagDBPAR AMS
dbParams, Object& executeResult) +161
System.Data.Ole Db.OleDbCommand .ExecuteCommand Text(Object&
executeResult) +160
System.Data.Ole Db.OleDbCommand .ExecuteCommand (CommandBehavio r
behavior, Object& executeResult) +48
System.Data.Ole Db.OleDbCommand .ExecuteReaderI nternal(Command Behavior
behavior, String method) +106
System.Data.Ole Db.OleDbCommand .ExecuteNonQuer y() +108
Here is my code:
string sql = "ghi.usp_Catego ry_Add";

OleDbParameter[] sp = new OleDbParameter[10];
HttpContext.Cur rent.Trace.Writ e("Category",
content.ToStrin g());
sp[0] = new OleDbParameter( "p_Id", content.Id);
sp[0].OleDbType = OleDbType.Integ er;
sp[0].Direction = ParameterDirect ion.InputOutput ;
sp[1] = new OleDbParameter( "p_parentId ", content.ParentI d);
sp[1].OleDbType = OleDbType.Integ er;
sp[2] = new OleDbParameter( "p_name", content.Name);
sp[2].OleDbType = OleDbType.VarCh ar;
sp[3] = new OleDbParameter( "p_description" ,
content.Descrip tion);
sp[4] = new OleDbParameter( "p_priority ", content.Priorit y);
sp[5] = new OleDbParameter( "p_url", content.Url);
sp[6] = new OleDbParameter( "p_ContentI d", content.Content Id);
sp[7] = new OleDbParameter( "p_ShowSubMenu" ,
content.ShowSub Menu);
sp[8] = new OleDbParameter( "p_SideMenu ", content.SideMen u);
sp[9] = new OleDbParameter( "p_user", "john");

OleDbHelper.Exe cuteNonQuery(Se ttings.Connecti onString,
CommandType.Sto redProcedure, sql, sp);
content.Id = FormUtils.Conve rtInt(sp[0].Value.ToString ());

Aug 21 '06 #1
0 1654

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6908
by: T8 | last post by:
I have a asp.net (framework 1.1) site interfacing against SQL 2000. It runs like a charm 99% of the time but once in a while I get the following "unspecified error". Sometimes it would resolve by itself (asp.net recycled?); it also can be solved by restarting IIS. Any ideas what cause(s) this to happen? System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbDataReader.ProcessResults(Int32 hr) at...
0
5688
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable) at System.Data.Common.DbDataAdapter.Update(DataSet dataSet) at TryThis.Form1.save() in C:\Documents and Settings\Nick\My Documents\...
0
1736
by: petro | last post by:
I am trying to deploy an asp.net application to my web server. My application uses system.data.oledb to connect to an oracle database. On my development machine I have the oracle client 10g installed and my application works. But on the Web server I get the error below. I believe it is because the Oracle client was not installed on the web server. The web server has two drives, our techs installed the oracle client on one drive and my...
0
11040
by: petro | last post by:
I am trying to deploy an asp.net application to my web server. My application uses system.data.oledb to connect to an oracle database. On my development machine I have the oracle client 10g installed and my application works. But on the Web server I get the error below. I believe it is because the Oracle client was not installed on the web server. The web server has two drives, our techs installed the oracle client on one drive and my...
5
9671
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve this error? Oracle error occurred, but error message could not be retrieved from Oracle. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the...
1
4981
by: thangchan | last post by:
Hi all, i am getting SQL update problem. as below ======================error messages ======================= Server Error in '/CMS' Application. -------------------------------------------------------------------------------- 無值提供給一或多個必要參數。 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more
4
5738
by: BookerW | last post by:
I am not sure which forum I should post this on, but here is the problem. I have a front end web application(VB) on asp,net 1.1 framework. Inside of the code, I have the following lines to connect to the database If gbSQLServer Then 'sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\w\vgyl\hy.mdb" gsConnectionString = "Provider=SQLOLEDB;Data Source=frt4;Initial Catalog=SRMSM;Integrated Security=SSPI" Else
0
1372
by: bw171 | last post by:
Hopefully, I frame this problem/question correctly. I have some code written/updated in visual studio 2003. This code when setup on other machines where I have installed the Oracle 9i client, and the Oracle 9.0 odbc drivers will connect to my oracle database when debugging. I ported the SAME code onto a new machine, installed visual studio 2003, installed IIS, installed the .net frameworks 1 thru 3, but when I am going through the code and...
1
2771
by: =?Utf-8?B?Ym9va2VyQG1ndA==?= | last post by:
Hopefully, I frame this problem/question correctly. I have some code written/updated in visual studio 2003. This code when setup on other machines where I have installed the Oracle 9i client, and the Oracle 9.0 odbc drivers will connect to my oracle database when debugging. I ported the SAME code onto a new machine, installed visual studio 2003, installed IIS, installed the .net frameworks 1 thru 3, but when I am going through the code...
0
9823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11234
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10827
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10463
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9637
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7170
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4681
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4275
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3281
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.