I need to display results in a RadGrid from the selected parameters inside a report viewer via a stored procedure.
Can someone please brifely explain how I can accomplish this based on the below stored procedure: The 4 parameters in the report viewer are selected and used in the stored procedure below:
Can someone please brifely explain how I can accomplish this based on the below stored procedure: The 4 parameters in the report viewer are selected and used in the stored procedure below:
ALTER PROCEDURE [dbo].[SelectProductInfoByShipAndDate]
@CruiseLine nvarchar(max),
@Ship nvarchar(max),
@FromDate date,
@ToDate date
AS
BEGIN
SET NOCOUNT ON;
Select *
FROM dbo.Daily_Totals
WHERE CruiseLine IN (SELECT * FROM dbo.SplitParameterValues(@CruiseLine, ','))
AND Ship IN (SELECT * FROM dbo.SplitParameterValues(@Ship, ','))
AND [Date] BETWEEN @FromDate AND @ToDate
ORDER BY CruiseLine, Ship, [Date], Product1Cash, Product2Cash, Product3Cash, Product4Cash, Product5Cash, Product6Cash, Sales
END