Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Posts
    63

    Unanswered: Returning Resultset from SP

    Hi All,

    How do I return resultset from Stored Procedure to the application?

    Thanks,
    t

  2. #2
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    Through a cursor.
    1) declare it (WITH RETURN TO CALLER)
    2) open it
    3) end SP

    Leaving it open will return the result set to the caller

    HTH

    Andy

  3. #3
    Join Date
    Feb 2004
    Posts
    9

    Re: Returning Resultset from SP

    Decalre number of resultset that the SQL procedure returns of Create Procedure statement using RESULT SET n, where n is the number of result sets.
    Declare cursor CURSOR WITH RETURN FOR
    Open cursor
    Exit from Procedure without closing cursor

    Cheers
    Beepyata


    Originally posted by toby25
    Hi All,

    How do I return resultset from Stored Procedure to the application?

    Thanks,
    t

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •