SQL Table Widget in Portal 7.02
I wrote a bunch of very simple queries, trying to build a maintenance dashboard for my analysts, which for some reason will not work in the SQL Table or Chart widget in the portal..anyone got any ideas? Here is my query
select wi.workitemid as 'ID', CONVERT(varchar,wi.created,101) as 'Created', RC.displaystring as 'Source'
from workitem as wi
left join CI$User as userTable on wi.affecteduserid = userTable.Id
inner join DisplayString as RC on (wi.sourceid = rc.elementid and rc.localeid = 'ENU')
where createdbyuser = 'First Last'
and wi.WorkItemId like 'IR%'
and rc.displaystring = 'Retired - Console'
and created > '11/01/2016'
ORDER BY WI.Created ASC
Best Answer
-
Steve_Wright Cireson Support Advanced IT Monkey ✭✭✭Hi Gordon,
I am able to run a slightly revised query in SMS and the SQL Table widget in a later version. Have you considered updating your Portal? There have been various enhancements made to the dashboard functionality.
Thanks,5
Answers
First of all, have you confirmed your query returns results in SQL management studio?
I made a few minor changes to your query for my environment and it worked fine in management studio and in a the SQL table widget within the portal.
If you confirm your query returns results, then it maybe that you need to upgrade your portal to the latest version. There was an issue with the early versions where using 'AS' in the select query did not work in the widget.
David
where createdbyuser = 'First Last'
and rc.displaystring = 'Retired - Console'
and created > '11/01/2016'
I am able to run a slightly revised query in SMS and the SQL Table widget in a later version. Have you considered updating your Portal? There have been various enhancements made to the dashboard functionality.
Thanks,