EXECUTE with OUTPUT parameter
Execute the dbo.cuspSumRideHrsSingleDay stored procedure and capture the output parameter.
Questo esercizio fa parte del corso
Writing Functions and Stored Procedures in SQL Server
Istruzioni dell'esercizio
- Declare
@RideHrsas anumericoutput parameter. - Execute
dbo.cuspSumRideHrsSingleDayand pass'3/1/2018'as the@DateParminput parameter. - Store the output parameter value in
@RideHrs. - Select
@RideHrsto show the output parameter value of the SP.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
-- Create @RideHrs
___ ___ AS ___(18,0)
-- Execute the stored procedure
___ dbo.___
-- Pass the input parameter
___ = '3/1/2018',
-- Store the output in @RideHrs
@RideHrsOut = ___ ___
-- Select @RideHrs
___ @RideHrs AS RideHours