Link to home
Start Free TrialLog in
Avatar of Umut Şeker
Umut ŞekerFlag for Türkiye

asked on

How get data from a storedprocedure?

My Stored procedure is;
ALTER PROCEDURE [dbo].[MyStoredProcedure]
    @xxx nvarchar(40),
    @yyy        nvarchar(20)
AS
BEGIN
    IF (EXISTS( SELECT * FROM dbo.MyTable WHERE  xxx= @xxxAND yyy= @yyy))
        RETURN(1)
    ELSE
        RETURN(0)
END
I want to get the return value(0/1 or true/false) of the MyStoredProcedure at run time with C# by using a SqlDataSource. How can I give the paramerters and how I can get the value?
SOLUTION
Avatar of Jai S
Jai S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial