CREATE PROCEDURE Proc_SelectDetails
@id int,
@Name varchar(50) out,
@RollNo varchar(50) out
AS
BEGIN
set @name = (select from table where id= @id)
set @RollNo = (select from table where id= @id)
End
I can not do any changes in sp.I have to use this sp as it in my C# code. If I try to call sp with of help of Dataset.Getting dataset has empty.Even Datareader is also come as empty. Which is proper method to call so that I will get Output parameter value in C#.