|
-
January 25th, 2006, 11:36 PM
#7
Re: How to call Stored Procedure in ASP.NET
 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|