Best place to format date expressions. SSRS side or SQL Server side? -
i working on ssrs dashboard report , report has graph displays comparison of values current , previous year. query have on sql side returns weekstartdate , weekenddate columns in result set. displaying data on report, need have formatted date.
i have 2 options here:
to format date in required format in derived column (derives weekstartdate , weekenddate columns) on sql side , use column directly on ssrs.
not having derived column on sql side, writing ssrs expression format dates on ssrs side.
i know 1 more preferable, effective performance standpoints.
other information: if may have consider other factors, there 3 other data sets used same report dashboard report, , there various other expressions conversions , conversions performed on ssrs side well. also, result sets huge.
looking forward thoughts , suggestions. cheers.
formatting should always part of front end, not backend (or worse: database!).
in report, chose 1 of predefined date formats (not hardcoded format) make sure users different locale settings can see data in preferred format.
Comments
Post a Comment