Hello, Below is the query being generated from the portal. i always get reques timed out from the reportporal application. But when executed this query on the sqlserver query analyser it gets 555 records in 8 mins 51 secs (this does vary but in secs). I have changed the sqlserver property not to timeout is there any other settings to be done on the portal app ? quick help is appreciated.
SELECT COALESCE( '' + CASE WHEN GROUPING(srh.GenderACode) = 1 THEN NULL ELSE COALESCE(CONVERT(varchar, srh.GenderACode), 'Unknown') END, '' + CASE WHEN GROUPING(srh.ActionUserCode) = 1 THEN NULL ELSE COALESCE(CONVERT(varchar, srh.ActionUserCode), 'Unknown') END, 'All') as [H1], Sum(srdc.ServiceBillAddlConcAmt) as [Service Bill Addl Conc Amt], Sum(srdc.ServiceBillGrossAmt) as [Service Bill Gross Amt] FROM ServiceRqstDetailCommercial srdc INNER JOIN ServiceRqstHeader srh ON srh.ServiceRqstNumber = srdc.ServiceRqstNumber GROUP BY srh.ActionUserCode, srh.GenderACode WITH ROLLUP ORDER BY GROUPING(srh.ActionUserCode) DESC, srh.ActionUserCode, GROUPING(srh.GenderACode) DESC, srh.GenderACode
Wrgds Ganesh K |