Jump to content


troy

query based collection problem

Recommended Posts

Hi

 

I need to build a collection that gathers all 2008 R2 servers that were installed in the last two weeks.

 

I wrote a query, but it doesn't work.

 

I will be happy for any kind of assistance

 

I SELECT SMS_R_System.ResourceID,
SMS_R_System.Name,
SMS_R_System.ResourceDomainORWorkgroup,
SMS_G_System_OPERATING_SYSTEM.InstallDate
FROM
SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on
SMS_G_System_OPERATING_SYSTEM.ResourceId = SMS_R_System.ResourceId
WHERE

(DATEPART(year,SMS_G_System_OPERATING_SYSTEM.InstallDate) > 2010)

 

10x

troy


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.