I have a report which currently provides some info about a particular selected system, and I'd like to edit it to report on the contents of a particularly selected collection instead. I have pretty much 0 SQL knowledge so was hoping someone here could show me the edit I need as I'm unsure on the joins and syntax etc. required...?
Here's the query:
select sys.netbios_name0, mem.banklabel0 [bank Label], mem.capacity0 [Capacity (MB)], mem.FormFactor0 [Form Factor],
MEM.memorytype0 [Memory Type], mem.tag0 [TAG], mem.devicelocator0 [Device Locator], mem.speed0 [speed (MHz)] from v_gs_physical_memory
as MEM inner join v_r_system as SYS on SYS.resourceid=MEM.resourceid
where
sys.netbios_name0 = @compname
order by MEM.tag0
select MEMA.MemoryDevices0 [# of Slots], MEMA.MaxCapacity0 [Max. Capacity (MB)] from v_gs_physical_memory_array as MEMA
inner join v_r_system as SYS on SYS.resourceid=MEMA.resourceid
where
sys.netbios_name0 = @compname
select mema.memoryDevices0 - Count(mem.tag0) [Number of Free Slots available] from v_gs_physical_memory as MEM
inner join v_r_system as SYS on SYS.resourceid=MEM.resourceid
inner join v_gs_physical_memory_array as MEMA on sys.resourceid=mema.resourceid
where
sys.netbios_name0 = @compname
group by mema.memorydevices0
Prompt:
begin
if (@__filterwildcard = '')
SELECT DISTINCT SYS.Netbios_Name0 from v_R_System SYS ORDER By SYS.Netbios_Name0
else
SELECT DISTINCT SYS.Netbios_Name0 from v_R_System SYS
WHERE SYS.Netbios_Name0 like @__filterwildcard
ORDER By SYS.Netbios_Name0
end
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.
Hi all,
I have a report which currently provides some info about a particular selected system, and I'd like to edit it to report on the contents of a particularly selected collection instead. I have pretty much 0 SQL knowledge so was hoping someone here could show me the edit I need as I'm unsure on the joins and syntax etc. required...?
Here's the query:
Prompt:
[The original source was from: http://myitforum.com/cs2/blogs/skissinger/archive/2008/09/01/physical-memory-and-memory-slots-hardware-inventory-extension.aspx]
Many thanks,
MRaybone.
Edited by MRayboneShare this post
Link to post
Share on other sites