1// Call to the stored procedure, with an OUTPUT parameter
2DECLARE @OutputParameter datetime
3 ,@ReturnValue int
4
5EXEC @ReturnValue= [YourStoredProcedure] [comma separated parameters if any] @OutputParameter OUTPUT
6PRINT(@ReturnValue)