BaşlayınÜcretsiz başlayın

EXECUTE with OUTPUT parameter

Execute the dbo.cuspSumRideHrsSingleDay stored procedure and capture the output parameter.

Bu egzersiz, kursun bir parçasıdır

Writing Functions and Stored Procedures in SQL Server

Kursa Göz Atın

Egzersiz talimatları

  • Declare @RideHrs as a numeric output parameter.
  • Execute dbo.cuspSumRideHrsSingleDay and pass '3/1/2018' as the @DateParm input parameter.
  • Store the output parameter value in @RideHrs.
  • Select @RideHrs to show the output parameter value of the SP.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

-- 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
Kodu Düzenle ve Çalıştır