Harshit Pandey
Well-Known Member
- Messages
- 290
- Solutions
- 8
- Reaction score
- 9
- Points
- 18
@Prajwal Desai - I am using the below query from your blog to create SQL Server 2019 device collection, but it is not working for me. The collection is created successfully, but after few minutes the collection shows 0 members. We have around 10 SQL servers running at 2019 within the database team. I checked, and they have SCCM client installed and updated to the latest version. What could be reason for this issue?
Code:
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ResourceId in (select distinct SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID from SMS_G_System_ADD_REMOVE_PROGRAMS where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = 'Microsoft SQL Server 2019')