... , , .
SP.
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
TestLocal
@a (18,0)
AS
SET NOCOUNT ON;
return 10
#
StoredProcedure sp = DB(). TestLocal (1);
sp.Execute();
int timeLeft = (int) sp.Output;
return timeLeft;
Change 1:
I got this by following these steps, but I don't think this is the correct way.
StoredProcedure sp = new DB (). TestLocal (1);
sp.Command.AddReturnParameter ();
sp.Execute ();
int myReturnValue = (int) sp.Command.OutputValues [0];
return myReturnValue;
source
share