sql SMP:列出筛选器成员

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql SMP:列出筛选器成员相关的知识,希望对你有一定的参考价值。

SELECT [conn1].[ResourceGuid]
FROM
    [CollectionMembership] [conn1]
    LEFT JOIN [vCollection] [conn2] ON [conn1].[CollectionGuid] = [conn2].[Guid]
WHERE [conn2].[Name] = 'Windows Servers'

SELECT [Name] = UPPER([Name])
FROM [vComputer]
WHERE [Guid] IN (
    SELECT [conn1].[ResourceGuid]
    FROM
        [CollectionMembership] [conn1]
        LEFT JOIN [vCollection] [conn2] ON [conn1].[CollectionGuid] = [conn2].[Guid]
    WHERE [conn2].[Name] = 'Windows Servers'
)
ORDER BY [Name]

SELECT *
FROM
	[vComputer] [conn1]
	LEFT JOIN [CollectionMembership] [conn2] ON [conn1].[Guid] = [conn2].[ResourceGuid]
	JOIN [vCollection] [conn3] ON [conn2].[CollectionGuid] = [conn3].[Guid] AND [conn3].[Name] = 'Windows Servers'

以上是关于sql SMP:列出筛选器成员的主要内容,如果未能解决你的问题,请参考以下文章

sql SMP:列出已知的代理名称

powershell SQL / SMP:列出包服务器

sql SQL:[SMP]隐藏补丁启动窗口

sql SQL:SMP资源关联父/子

sql SQL:所有可用的SMP报告

sql SQL / SMP:显示许可证计数