CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #7
    Join Date
    Feb 2001
    Location
    Sydney, Australia
    Posts
    1,909

    Re: How to call Stored Procedure in ASP.NET

    Quote Originally Posted by JetDeveloper
    PHP Code:
    create or replace procedure GetSalary (empid in number)
    is
    begin
        select salary from employees where empid
    =empid;
    end
    You don't need the output param at all. Use

    cmd.ExecuteScalar()

    to get the result.
    Thanks JetDeveloper. That looks like the proper solution for the stored procedure which designed to return one value.
    Last edited by Igor Soukhov; January 25th, 2006 at 11:41 PM.
    Best regards,
    Igor Sukhov

    www.sukhov.net

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

Featured