Hi All,
Currently I have resolved the Date conversion issue between queries by converting them to strings.
Function similar to below:
CONVERT(VARCHAR(8),a_ACTUAL_WORK_DATE.FULL_DATE,112) >= FIRSTDAYOFPREV5QTR
AND
CONVERT(VARCHAR(8),a_ACTUAL_WORK_DATE.FULL_DATE,112) <= LASTDAYOFPREVQTR
This has temporarily resolved performance issues with Standard Reports.
However, we need a solution to somehow compute GetDate() prior to the execution of query and use it in Universe predefined filter conditions. Otherwise End User Ad hoc queries will continue to have performance issues.
Other information which I obtained from SQL Server Tech Forums is that GetDate() in SQL - [WHERE] clause will have performance issues in SQL Server 2008, as GetDate() is non deterministic.
http://technet.microsoft.com/en-us/library/ms178091(v=sql.100).aspx
Any suggestions on possible workarounds will be of great help !!!
Many thanks for your suggestions
Regards,
Raj