- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在创建一份报告,以查找我们网络上装有某些软件的计算机。
该报告工作正常,直到我想知道该程序上次使用的时间。当我添加“LastUsedTime0”时,结果增加了。
我不是编码员,我的脚本是许多脚本的反复试验,但看起来数据库的链接不正确(根据我的 Crystal 报告经验)。
这是脚本
==============================
SELECT s.Name0, DisplayName0, Publisher0, s.AD_Site_Name0, TopConsoleUser0, LastUsedTime0
FROM v_Add_Remove_Programs arp,V_R_system s,
v_FullCollectionMembership fcm,
v_GS_CCM_RECENTLY_USED_APPS rua,
v_GS_SYSTEM_CONSOLE_USAGE scu
WHERE fcm.CollectionID = 'SMS00001' and
arp.ResourceID=fcm.ResourceID and
arp.ResourceID=s.ResourceID and
arp.ResourceID=rua.ResourceID and
arp.ResourceID=scu.ResourceID and
(
DisplayName0 like 'Microsoft Office%' and
DisplayName0 not like '%Excel%' and
DisplayName0 not like '%database engine%' and
DisplayName0 not like '%slide%' and
DisplayName0 not like '%frontpage%' and
DisplayName0 not like '%SharePoint%' and
DisplayName0 not like '%Live%' and
DisplayName0 not like '%PowerPoint%' and
DisplayName0 not like '%Word%' and
DisplayName0 not like '%XML%' and
DisplayName0 not like '%Communicator%' and
DisplayName0 not like '%SR-1%' and
DisplayName0 not like '%Resource%' and
DisplayName0 not like '%Visio%' and
DisplayName0 not like '%Web%' and
DisplayName0 not like '%XP%' and
DisplayName0 not like '%Sounds%' and
DisplayName0 not like '%OneNote%' and
DisplayName0 not like '%Click%' and
DisplayName0 not like '%Primary%' and
DisplayName0 not like '%Standard%' and
DisplayName0 not like '%Connector%' and
DisplayName0 not like '%Pack%' and
DisplayName0 not like '%Add-in%' and
DisplayName0 not like '%Validation%' and
DisplayName0 not like '%Components%' and
DisplayName0 not like '%Proof%' and
DisplayName0 not like '%MUI%' and
DisplayName0 not like '%Service%' or
DisplayName0 like 'Microsoft Project%' and
DisplayName0 not like '%Pack%' and
DisplayName0 not like '%MUI%' and
DisplayName0 not like '%Service%' or
DisplayName0 like 'Microsoft Access%' and
DisplayName0 not like '%engine%' and
DisplayName0 not like '%Runtime%' and
DisplayName0 not like '%Standard%' and
DisplayName0 not like '%Connector%' and
DisplayName0 not like '%Pack%' and
DisplayName0 not like '%Add-in%' and
DisplayName0 not like '%Validation%' and
DisplayName0 not like '%Components%' and
DisplayName0 not like '%Proof%' and
DisplayName0 not like '%MUI%' and
DisplayName0 not like '%Service%' or
DisplayName0 like 'Microsoft Project%' and
DisplayName0 not like '%Pack%' and
DisplayName0 not like '%MUI%' and
DisplayName0 not like '%Trial%' and
DisplayName0 not like '%Service%' or
DisplayName0 like 'Microsoft Access%' and
DisplayName0 not like '%engine%' and
DisplayName0 not like '%MUI%' and
DisplayName0 not like '%Service%' or
DisplayName0 like 'Microsoft Visio%' and
DisplayName0 not like '%Pack%' and
DisplayName0 not like '%MUI%' and
DisplayName0 not like '%Viewer%' and
DisplayName0 not like '%Service%'
)
GROUP BY DisplayName0, Publisher0, s.AD_Site_Name0, s.Name0, LastUsedTime0, TopConsoleUser0
ORDER BY Publisher0
============================
这个脚本可能不是做我想做的事情的最好方法,所以任何建议都会很棒。
非常感谢您的宝贵时间。
最佳答案
您正在执行的连接在技术上可行,但会给您提供不正确的结果。这是一种一对多的关系,这就是您看到“重复项”的原因。
添加/删除程序数据与执行数据无关。它与机器相关,而机器又与执行数据相关。但没有直接关系。
添加/删除程序数据是在安装程序时(通常)写入 Windows 注册表的数据。执行数据由 SCCM 客户端的软件计量部分收集。它监视 .exe 文件的执行。 .exe 文件不一定是添加/删除程序中的程序,并且添加/删除程序中的程序可能有多个与其相关的可执行文件。这就是您的查询返回不良结果的原因。
您最好从 v_GS_CCM_RECENTLY_USED_APPS 获取所有数据,并从查询中删除添加/删除程序。 v_GS_CCM_RECENTLY_USED_APPS 中有一个产品名称列,并且有执行数据。
关于report - 用于显示软件上次使用时间的 SCCM 报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10924447/
是否有将 Crystal Reports .rpt 文件转换为 SQL Reporting 2008 .rdl 文件的免费软件? 最佳答案 您很快就会发现,由于 Crystal 许可限制,这是不允许的
如何将 Crystal Reports 8.0 迁移到 Crystal Reports 2008? 8.0的存储过程的 Crystal 报表在2008年不执行,有人可以帮忙吗? 我们正在使用 Seag
我们有几个执行相同格式操作的报告(例如,如果值在特定范围内,则显示“通过”或“失败”。) 如果没有 Crystal Reports Server,有没有办法在报表之间共享功能,以便它们不需要重复?我知
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引起辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the he
我的 Allure 报告以 MM/dd/yyyy 格式显示日期。我想将格式更改为 dd/MM/yyyy。是否可以在 Allure 报告中设置不同的日期格式? 最佳答案 是的,您可以在 settings
在矩阵报告中是否可以根据父组的值隐藏列? 例如,我有一个名为“value”的列,当包含它的列组具有特定值时,我想隐藏它。 最佳答案 对的,这是可能的。如果您单击该组并在“可见性”选项卡下编辑其属性,您
我有一个 Crystal 报告,它正在打印一个空白页并可以很好地打印报告,但只是使用了这个额外的页面。 完成我的研究,勾选、取消勾选并将正确的公式添加到“新页面之后”选项中,而不是在最后一条记录公式等
我的 PDF 报告有问题,在填充文本字段之前,文本字段中的字符串被截断。丢失字符的数量 (5-6) 不足以超过 textField 的末尾. 我添加了 text.truncate.at.char属性添
如果数据字段“IsVisible”设置为 1,我在 Crystal Report 上有一个文本和绘图,我想隐藏它。有没有简单的方法来做到这一点? 最佳答案 您可以通过转到“部分专家”-> 选择所需部分
我设计了一个 Crystal 交叉表报告。它是这样显示的 col1 col2 col3 行1 行11 val1 val2 val3 行2 行21 val1 val2 val3 但我也想要
我刚刚购买了最新版本的 SAP Crystal Reports,并从他们的网站下载了它。我正在尝试运行 Setup.exe 程序,但是一旦我双击它,我就会收到一条 fatal error 消息,指出
如何在 Crystal Reports 中使用多个非嵌套组? 我想做的一个小例子: - 租车头 --rentals 标题(组) ---出租时间为 01-02-2008 至 01-06-2008 ---
我有一个多列 Crystal 报告,现在我想显示重量和数量列的运行总计。实际报告的图片是这个 但是 Crystal 报表设计器不显示其他列,所以我应该在哪一列计算值。 最佳答案 遵循这种方法: 使用以
在 Crystal Reports 中,运行总计字段和汇总字段有什么区别? (在 Crystal IDE 中,汇总字段位于插入 -> 汇总。可以在字段资源管理器中添加运行总计) (版本 11.5) 最
我正在用 Crystal 开发一份报告,我需要对具有多种不同状态的特定字段进行计数。例如,我的报告中有一个“StatusType”字段,其中包含的值是 "In Process", "Rejected"
我有一份 SSRS 2005 报告,其中包含许多图像。我包含图像的方式是我有一个图像对象,其 URL 设置在 value 属性中。实际图像由同一台服务器上的 IIS 虚拟目录托管。我这样做是因为我需要
我正在尝试打印组的最后一条记录,但表达式 print when group changes: True似乎不起作用。它只是打印该组的所有记录。 (我已经根据用户名对记录进行了分组)。 最佳答案 我遇到
我需要构建一个报告,以四个分组级别显示数据。棘手的部分是:要在这四个级别上显示的实际字段将作为参数传递到报告中。 我现在的主要问题是:如何告诉报告上的文本框不显示参数@X 的值,而是按参数@X 中指定
是否可以确定 Reporting Services 报表中显示的列数,并在单独文本框的可见性表达式中使用它? 我面临以下情况: 我的客户有一个 Reporting Services 2005 报告,其
在 RS 报告中,我有一个矩阵,其 LayoutDirection 属性设置为 RTL(因为它是希伯来语)。我通过从数据集字段列表中拖动一个字段并将其放在矩阵的列标题中来创建一个列组。所以列数是可变的
我是一名优秀的程序员,十分优秀!