Registered member login:
Register Now
Altirigos » Notification Server and Solutions » Inventory Solution » Help needed locating table

» Current Poll
Do you leave the Aclient enabled?
YES - 82.68%
105 Votes
NO - 17.32%
22 Votes
Total Votes: 127
You may not vote on this poll.
» Stats
Members: 9,479
Threads: 11,743
Posts: 55,255
Top Poster: Nick (4,981)
Welcome our newest member, timmaki
» Online Users: 38
1 members and 37 guests
whiggy
Most users online at once 294, 06-30-2007 at 12:24 PM.
» March 2010
S M T W T F S
28 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 123
Reply
Old 06-03-2009, 05:09 PM   #1 (permalink)
 
Status: Altiris Admin
Join Date: 07-07-2008
Location: Washington DC
Posts: 43


Help needed locating table

I'm trying to get a report that includes how many instances of a certain application is installed and which version it is. I have everything worked out except how many instances are in our environment. Can someone point me to the correct table?

I don't need anyone to write the SQL query for me. If I can find the table I will be able to figure the rest of it out. I haven't had any luck understanding let alone editing any of the canned reports.

Thanks so much for your time. I'm at my wits end!



Sorry: I'm using NS 6.0
sixdollarshirt is offline   Reply With Quote
Old 06-03-2009, 06:09 PM   #2 (permalink)
 
Status: Altiris Admin
Join Date: 05-29-2008
Location: Chicago
Posts: 76


Inv_AeX_OS_Add_Remove_Programs
Inv_AeX_SW_Audit_Software

Those should get you started.
gwilmington is offline   Reply With Quote
Old 06-04-2009, 01:48 PM   #3 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 503


you can try something like this...

Select a.Name, a.version,Count(a.name)
From [inv_aex_os_add_remove_programs] a
--Change below line to find app
Where [name] LIKE 'microsoft .net %'
Group by a.Name, a.version
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows

Last edited by JeffreyJRiggs; 06-04-2009 at 01:51 PM..
JeffreyJRiggs is offline   Reply With Quote
Old 06-04-2009, 02:46 PM   #4 (permalink)
 
Status: Altiris Admin
Join Date: 07-07-2008
Location: Washington DC
Posts: 43


Quote:
Originally Posted by JeffreyJRiggs View Post
you can try something like this...

Select a.Name, a.version,Count(a.name)
From [inv_aex_os_add_remove_programs] a
--Change below line to find app
Where [name] LIKE 'microsoft .net %'
Group by a.Name, a.version
This worked out VERY well. Thanks so much. Can you explain how the "a" works at the end of the table name or possibly point to a doc that explains it? I've been trying to build reports using simple SQL queries, but haven't grasped this concept yet.

Thanks again for your help. This worked out great!
sixdollarshirt is offline   Reply With Quote
Old 06-04-2009, 03:27 PM   #5 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 503


im a sql newb too...

it is like this... you need to designate a letter for different tables if you want to join them..

example...
enter computer name at the end... what I have if you put in a report... you can setup a variable called %computer%.. when you run the report it asks for the computer name....

what if you had multiple tables joined and more than one had a field called name... you need a way to selectively select which you want... thus the tagging of t0, t1, etc...
hope that helps...

Select t0.[Name], t4.[Computer Model], [Serial Number] as 'Tag Number', t1.[Type] as 'CPU Type', t1.[Number] as 'CPU Count', t1.[Speed] as 'CPU Speed', t2.[Total Physical Memory (MB)] as 'Memory (MB)',
t3.[Name], t3.[Size in MBytes], t0.[OS Name], t0.[OS Type], t0.[OS Revision]
from [Inv_AeX_AC_Identification] t0 left outer join
[INV_AeX_HW_CPU] t1 on t0._ResourceGuid = t1._ResourceGuid left outer join
[INV_AeX_HW_Memory] t2 on t1._ResourceGuid = t2._ResourceGuid left outer join
[INV_AeX_HW_Logical_Disk] t3 on t2._ResourceGuid = t3._ResourceGuid left outer join
[INV_AeX_HW_Serial_Number] t4 on t3._ResourceGuid = t4._ResourceGuid
Where t3.[name] in ('c:','D:','E:','F:','G:','H:','I:') and t3.[Description] ='Local Disk'
and t0.[name] like '%Computer%'
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Old 06-04-2009, 04:14 PM   #6 (permalink)
 
Status: Altiris Admin
Join Date: 07-07-2008
Location: Washington DC
Posts: 43


absolutely helpful. Thanks so much. I always want to "learn to fish" and this is what you've done here. Thanks again!
sixdollarshirt is offline   Reply With Quote
Old 06-04-2009, 04:33 PM   #7 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 503


Quote:
Originally Posted by sixdollarshirt View Post
absolutely helpful. Thanks so much. I always want to "learn to fish" and this is what you've done here. Thanks again!

it is "Dirty" but it works...
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 06:51 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
vB.Sponsors
Altirigos