Inventory Reports to Mirror Collections
- From: David Schmidt <DavidSchmidt@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 14 Dec 2007 05:47:00 -0800
Hi SMS Community
Since Advanced Clients cannot be assigned to secondary sites, the default
"Site Code" and "Site Code" reports are rendered useless
We Have 10 secondary sites (with proxy management point installed in each
2nd site) and only one Primary Site.
So I am wondering, how to tweak the default SMS reports to query by
Collection instead of my site code?
There is a Canned report in this category that matches what I would like to
use:
category - SMS Site - General
"computers in a specific site"
I have clone this report and used the table "V_Collection" to populate the
variable feature, but still recieve error msg:
The column prefix 'SYS' does not match with a table name or alias name used
in the query.
Error Number: -2147217900
Source: Microsoft OLE DB Provider for SQL Server
Native Error: 107
Resident SQL experts, can you point me in the right direction please? :)
here is my code:
SELECT SYS.Netbios_Name0, SYS.User_Domain0, SYS.User_Name0,
ASSG.SMS_Installed_Sites0, SYS.Client_Version0, COLL.Name0
FROM v_R_System SYS, V_Collection COLL
JOIN v_RA_System_SMSInstalledSites as ASSG on SYS.ResourceID=ASSG.ResourceID
WHERE COLL.Name0 LIKE @variable
Order by SYS.Netbios_Name0
and then the linked report
begin
if (@__filterwildcard = '')
select CollectionID, Name from v_Collection order by Name
else
select CollectionID, Name from v_Collection
WHERE Name like @__filterwildcard
order by Name
end
Thanks
David
.
- Follow-Ups:
- Re: Inventory Reports to Mirror Collections
- From: Garth
- Re: Inventory Reports to Mirror Collections
- Prev by Date: RE: SMS_INVENTORY_DATA_LOADER Error
- Next by Date: Re: Inventory Reports to Mirror Collections
- Previous by thread: RE: SMS_INVENTORY_DATA_LOADER Error
- Next by thread: Re: Inventory Reports to Mirror Collections
- Index(es):
Relevant Pages
|