Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Help - Rebuild "Canned" query

Status
Not open for further replies.

Bennie47250

Programmer
Nov 8, 2001
515
US
Under queries, we have a query titled "All Systems with Specified Software File Name and File Size" Since I did not know the file size, I deleted the prompt from the query. Now I want to put it back, but do not know the syntax. I’m hoping this is a canned query and someone can simply copy and paste it query here for me.

Here is the Query statement I now have

select distinct sys.Name, sys.SMSAssignedSites, sys.OperatingSystemNameandVersion, sys.ResourceDomainORWorkgroup, sys.LastLogonUserName, sys.IPAddresses, sys.IPSubnets, sys.ResourceId, sys.ResourceType from SMS_G_System_SoftwareFile as swfile inner join SMS_R_System as sys on sys.ResourceId = swfile.ResourceID where swfile.FileName like ##PRM:SMS_G_System_SoftwareFile.FileName##

Thanks
Bennie
 
Here you go:

select distinct sys.Name, sys.SMSAssignedSites, sys.OperatingSystemNameandVersion, sys.ResourceDomainORWorkgroup, sys.LastLogonUserName, sys.IPAddresses, sys.IPSubnets, sys.ResourceId, sys.ResourceType from SMS_G_System_SoftwareFile as swfile inner join SMS_R_System as sys on sys.ResourceId = swfile.ResourceID where swfile.FileName like ##PRM:SMS_G_System_SoftwareFile.FileName## and swfile.FileSize = ##PRM:SMS_G_System_SoftwareFile.FileSize##

I hope you find this post helpful.

Regards,
GSC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top