Umut Şeker
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.