Advertisement

08.14.2008 at 10:02AM PDT, ID: 23648877
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Access Violation error when trying to call a Stored Procedure from VB.NET using Oracle.DataAccess

Asked by pras_gupta in Oracle 10.x, Microsoft Visual Basic.Net, .NET Framework 2.x

Tags: , , ,

I am getting this error when I try to call a stored procedure from VB.NET using Oracle.DataAccess, Below is the calling code .Please help.

Note: I have tried repairing VS 2005 and repairing .NET framework 2.0.

I have 10g client and Oracle XE server on my machine.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
public virtual int ExecuteXmlQuery(string storedProcedureName, OracleParameter[] parameters)
        {
            
            OracleConnection objConnection = null;
            OracleCommand objOracleCommand = null;
            int intReturn = 0;
            try
            {
                objConnection = new OracleConnection(ConnectionString);
                objConnection.Open();
                objOracleCommand = new OracleCommand();
                objOracleCommand.CommandType = System.Data.CommandType.StoredProcedure;
                objOracleCommand.CommandText = storedProcedureName;
                objOracleCommand.Connection = objConnection;
                objOracleCommand.Parameters.Clear();
 
                for (int index = 0; index < parameters.Length; index++)
                {
                    objOracleCommand.Parameters.Add((OracleParameter)parameters[index]);
                }
                intReturn = objOracleCommand.ExecuteNonQuery();
                objConnection.Close();
                return intReturn;
            }
            catch
            {
                throw;
            }
            finally
            {
 
                if (objOracleCommand != null)
                {
                    objOracleCommand = null;
                }
                if (objConnection != null)
                {
                    if (objConnection.State != System.Data.ConnectionState.Closed)
                    {
                        objConnection.Close();
                        objConnection.Dispose();
                    }
                }
                objConnection = null;
            }
        }
 
 
***************Caller of EXECUTEXMLQUERY*************************
 
Dim objParam(0) As OracleParameter
 
        objParam(0) = New OracleParameter
 
        'add parameter UserID passed as input 
        objParam(0).OracleDbType = OracleDbType.XmlType
        objParam(0).ParameterName = "ip_customer_details"
        objParam(0).Value = customerData.GetXML()
        objParam(0).Direction = System.Data.ParameterDirection.Input
 
 
 
        Dim I As Integer
        I = db.ExecuteXmlQuery("CONFIG_INSERT_CUSTOMER_TEMP", objParam)
Attachments:
 
Error message
Error message
 
[+][-]08.15.2008 at 03:03PM PDT, ID: 22242008

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.30.2008 at 04:19AM PDT, ID: 22604238

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 10.x, Microsoft Visual Basic.Net, .NET Framework 2.x
Tags: Microsoft, Oracle, Visual Studio, VB.NET, Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Sign Up Now!
Solution Provided By: raja_ind82
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.23.2008 at 08:08PM PDT, ID: 22792961

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10.27.2008 at 06:52PM PDT, ID: 22818582

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628