Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Help with a simple SQL report

Updated: 09 Jul 2010 | 3 comments
SilentCastle's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

Hi,

I'm trying to bring in the computer model into a report I put together showing BIOS version times.

I can't seem to get the join working for the model, though it's working for the other field.

Any advice?  The code at the bottom has to do with a collection picker.

SELECT vc.Name as 'Computer Name', arp.[Bios Release Date] as 'Release Date', mdl.[Computer Model] as 'Model'

from vComputer  vc                        
join Inv_Aex_HW_BIOS arp on arp._ResourceGuid = vc.Guid
join Inv_AeX_HW_Serial_Number mdl on mdl._ResourceGuid = vc.Guid      
INNER JOIN dbo.CollectionMembership cm ON vc.Guid = cm.ResourceGuid                 
where cm.CollectionGuid ='%Collection%'           

Thanks!

Comments

lotsill's picture
07
Jun
2010
1 Vote +1
Login to vote

I ran the query with a

I ran the query with a collection guid and it ran without errors running the computer name, bios date and model. 

Steve Petrasek

SilentCastle's picture
08
Jun
2010
0 Votes 0
Login to vote

Thank you! I was wondering

Thank you! I was wondering what I did wrong!  As it turns out, the cut and paste into Altiris was the issue.  Thanks again!
JeffDG's picture
09
Jun
2010
0 Votes 0
Login to vote

Why can't Altiris use standard SQL parameters

This %Parameter% thing is a PITA.

I build my SQL in SQL Server Management Studio and then paste in...It would be sooooo much simpler if Altiris would just use the @Parameter format.