Here is my query:
SELECT [Entry No_], [Currency Code], [Posting Date],
SUM([Credit]),
SUM([Debit])
FROM Db
WHERE [Posting Date] >= (@DateFrom)
AND [Posting Date] <= (@DateTo)
GROUP BY [Entry No_], [Currency Code], [Posting Date]
The [Posting Date] (which gives an error) is a datetime. My report works in Visual Studio, but when deployed on the Reporting Server:
The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value.
I have tried setting the dateformat like suggested:
set dateformat ymd
With no success. I’ve also tried setting Enable Remote Errors to True.
Any ideas on what to try next?
Found the error.
In MS BIDS the parameters “data type” is automatically set to “Text”.
Changing it to “Date/Time” did the charm.
I think it´s kinda odd that the parameter data type does not automatically change to what the column is set to in the database.