mcharves
Posts: 10
Score: 0 Joined: 5/6/2002 From: Pasco, WA State, USA Status: offline
|
I'm trying to convert some of our Queries into Web Reports, and having a devil of a time figuring out exactly how to convert some of the SQL code to work in Web Reporting. I've done some searching on the forums, but am not really sure I understand how to resolve my issue after sorting through some of the resulting posts of my search. I've basically built (or am trying to build) a report that allows a Web Reporting user to select a computer model and then display the number of computers on the network that match that model number. My problem is the "System_DISC" table issue, and I'm not sure I'm grasping how to alter that from the table to the views. My SQL code is :
select v_R_System.ItemKey,
v_R_System.Netbios_Name0,
v_R_System.User_Name0,
v_G_System_COMPUTER_SYSTEM.Manufacturer00,
v_G_System_COMPUTER_SYSTEM.Model0,
v_G_System_X86_PC_MEMORY.TotalPhysicalMemory0,
v_G_System_PROCESSOR.Name0,
v_G_System_OPERATING_SYSTEM.Caption0,
v_R_System.AD_Site_Name0
from System_DISC AS v_R_System
INNER JOIN Computer_System_DATA AS v_G_System_COMPUTER_SYSTEM ON v_G_System_COMPUTER_SYSTEM.MachineID = v_R_System.ItemKey
INNER JOIN PC_Memory_DATA AS v_G_System_X86_PC_MEMORY ON v_G_System_X86_PC_MEMORY.MachineID = v_R_System.ItemKey
INNER JOIN Operating_System_DATA AS v_G_System_OPERATING_SYSTEM ON v_G_System_OPERATING_SYSTEM.MachineID = v_R_System.ItemKey
INNER JOIN Processor_DATA AS v_G_System_PROCESSOR ON v_G_System_PROCESSOR.MachineID = v_R_System.ItemKey
where v_G_System_COMPUTER_SYSTEM.Model0 like '@variable'
I can put that into the SQL Query Analyzer and it will run fine (provided of course that I change the '@variable' to an actual model number). Can someone explain what I need to do to change the System_DISC to a view format? Thanks a lot in advance...
_____________________________
Mike Charves SMS Administration Bechtel National, Inc.
|