select
SYS.Netbios_Name0 as 'Computer Name',
CU.TopConsoleUser0 as 'Top Console User'
From v_R_System SYS
join v_GS_SYSTEM_CONSOLE_USAGE cu on SYS.ResourceID = CU.ResourceID
ORDER BY SYS.Netbios_Name0
The above code works with one issue. It only shows 89 computers. If I remove the topconsoleusage from the SQL statement and return just the 'Computer Name' it returns 1,350 machines. Which is how many machines we have.
What is wrong with my code that it only returns 89 computers when I try to find the TopConsoleUser?
I want it to show me all 1,350 machines and the TopConsoleuser for each.
Thanks,
SYS.Netbios_Name0 as 'Computer Name',
CU.TopConsoleUser0 as 'Top Console User'
From v_R_System SYS
join v_GS_SYSTEM_CONSOLE_USAGE cu on SYS.ResourceID = CU.ResourceID
ORDER BY SYS.Netbios_Name0
The above code works with one issue. It only shows 89 computers. If I remove the topconsoleusage from the SQL statement and return just the 'Computer Name' it returns 1,350 machines. Which is how many machines we have.
What is wrong with my code that it only returns 89 computers when I try to find the TopConsoleUser?
I want it to show me all 1,350 machines and the TopConsoleuser for each.
Thanks,