473,574 Members | 2,650 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 1634

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

Similar topics

1
6839
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:...
0
5633
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...
0
1721
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...
0
11007
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...
5
9635
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...
1
4963
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...
4
5709
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 =...
0
1364
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...
1
2757
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...
0
7815
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
8078
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. ...
0
8257
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...
1
7829
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6477
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...
0
3766
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2254
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
1
1359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1076
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...

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.