首先,我一直在寻找全国各地的答案,这一点,我也是新来的SQL编码,所以请多多包涵。附近有语法错误“;” (Microsoft SQL Server错误102)
我试图发现客户机在SCCM 2012r2与自定义报告当前的健康状况,请参阅下面的代码:
SELECT v_r_system.name0 AS 'Computer Name',
v_gs_antimalwarehealthstatus.lastquickscanage AS 'Days since last quick scan',
v_gs_antimalwarehealthstatus.lastfullscanage AS 'Days Since Last Full Scan',
v_gs_antimalwareinfectionstatus.computerstatus AS 'Current Status',
v_gs_antimalwareinfectionstatus.lastcleaneddectiontime AS 'Last Cleaned'
FROM v_gs_antimalwarehealthstatus
INNER JOIN v_gs_antimalwarehealthstatus
INNER JOIN v_r_system
ON v_gs_antimalwarehealthstatus.resourceid = v_r_system.resourceid
INNER JOIN v_gs_antimalwareinfectionstatus;
当我尝试它Report Builder 3.0中我不断收到以下错误:
我似乎无法找出问题所在,它的驾驶我疯了...
无论如何,任何ÿ您可以同时做点我在正确的方向将是巨大的。
干杯
P.
“连接”的“ON”子句在哪里? –
'INNER JOIN v_gs_antimalwareinfectionstatus;' - 添加连接条件 – Backs
您的条款上错过了一些内部联接这里:'INNER JOIN v_gs_antimalwarehealthstatus' 和'INNER JOIN v_gs_antimalwareinfectionstatus' – Jens