Microsoft SQL Server Management Studio Express
…
ALTER PROCEDURE [dbo].[testc]
@FromDate smalldatetime,
@ToDate smalldatetime
AS
SELECT
jobs
….
FROM
….
WHERE
….
(@FromDate<=t.Date and t.Date<=@ToDate)
I have a report with Crystal Reports XI, based on the procedure above.
When run from Crystal Reports, the report asks for parameters with the time 00:00:00, and retrieves correctly the jobs.
When I attach the report to a system and we run it, the report asks for parameters datetime, with default actual time. We have to change the time, 00:00:00, in order to obtain correct results. As a job that is after a time eg 14:40:50 does not appear. My question could be silly, but why we have to change the time? It shouldn’t matter what time it is, because the jobs in the system have date only.
Please help.
…
ALTER PROCEDURE [dbo].[testc]
@FromDate smalldatetime,
@ToDate smalldatetime
AS
SELECT
jobs
….
FROM
….
WHERE
….
(@FromDate<=t.Date and t.Date<=@ToDate)
I have a report with Crystal Reports XI, based on the procedure above.
When run from Crystal Reports, the report asks for parameters with the time 00:00:00, and retrieves correctly the jobs.
When I attach the report to a system and we run it, the report asks for parameters datetime, with default actual time. We have to change the time, 00:00:00, in order to obtain correct results. As a job that is after a time eg 14:40:50 does not appear. My question could be silly, but why we have to change the time? It shouldn’t matter what time it is, because the jobs in the system have date only.
Please help.