Skip to Content
author's profile photo Former Member
Former Member

Stored Procedures

hi

Iam using JDBC Sender and want to execute a procedure.

my procedure is working well in Oracle sql plus. But not in XI. If I write EXEC procedureName or EXECUTE procedureName in sql plus it gives "procedure successfully completed" but in XI it gives "invalid SQL statement"...why is it so.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 05:43 AM

    Hi Narayana,

    I found this on help.sap.com:

    <i> Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.

    The expression must correspond to the SQL variant supported by the relevant JDBC driver.</i>

    Please check that your Stored Procedure should contain only one SELECT statement.

    Moreover you need to have a response message type to catch the response.

    Thanks & Regards,

    Varun Joshi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Narayana,

      Please Check that whether XI supports Stored Procedures with UPDATE statement or not.

      This is how I made a Stored Procedure in SQL Server:

      CREATE PROCEDURE usp_Test AS

      SELECT au_fname, au_lname

      FROM authors

      ORDER BY au_lname

      Thanks & Regards,

      Varun Joshi

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.