Results 1 to 28 of 28

Thread: [Resolved] Return value of Stored Procedure

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member naruponk's Avatar
    Join Date
    Feb 2004
    Location
    Some where in the world
    Posts
    423

    Resolved [Resolved] Return value of Stored Procedure

    Hi,

    Code:
    This is inside stored procedure
    ......
    Select @Result
    Return @Result
    ......
    Then i call this stored procedure from VB
    Code:
    with cm
    ......
    ......
    ......
    end with
    with rs
    ......
    ......
    .open cm
    msgbox .recordcount
    end with
    I got an error that "Operation is not allow when object is closed"
    I'm surely that i have open cm already, when i change to other
    stored procedure it works fine. I think the problem is i dont know
    how to use stored procedure which is using RETURN

    I have try this stored procedure in SQL analyzer, works fine.
    Can any one give me the right way to solve this problem?

    Thanks for advance
    Last edited by naruponk; May 5th, 2005 at 07:35 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width