Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

SQL 2005 SSRS - Date/Time question

$
0
0

I need to be able to perform a query of a database using user input of dates and a fixed time of 7am.

I have an @StartDate and @EndDate, which is the input from the user. The report runs fine, but when I add Pour_Start_Time > 07:00:00 I get an error.

Below is the code that I have that works: 

<code>

SELECT Heat_Number, Heat_Idx, Furnace_Idx from HeatData

Where Turn_Date >= @Start_Date and Turn_Date <= @End_Date

and @Start_Date = (@Start_Date) and @End_Date = (@End_Date)

<code>

I need to be able to have the user specify the dates and then have only data from those dates from 7am to 7am retrieved.

The field Pour_Start_Time is formatted as a Date/Time field.

Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 20764


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>