Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Curious recalculations

$
0
0
Hi, I have a SQL Server scalar-function that determines the number of working days between two dates. It works as it is supposed and has been in use for yearsThis function is included in a procedure that provides the data-set for a report created and published using Report Manager 3 (SQL Server 2008 R2 SP1). The column is simply the number of working daysOne text-box on that report exposes the value derived from the number of working days column. The dates passed to the function are part of the query, although the report has date parameters these have no bearing on the functionTesting in SQL Server returns the correct values from this function. Testing using the Query Designer in Report Builder returns the correct values from this functionHowever the text-box on the report face does not return the correct value. In some cases in adds a day in others it reduces the value by a day. There's no reason I can find for this; has anyone come across this behaviour?I have re-written the stored procedure as a table-value function. Same result. I edited the procedure to write the result-set to a temporary table and then return the result-set as a select from this temporary table. All produced the same result as the original procedureAll the databases use the same language; us_english and the report language property is set to en-GBAny help or ideas on how to solve this conundrum will be appreciated

Viewing all articles
Browse latest Browse all 2791

Trending Articles