Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
Problem creating a custom report with the "Custom1" field
philippe.lenard
#1 Posted : Tuesday, December 20, 2011 6:38:41 PM

Rank: Premium user

Groups: Premium Users, Member
Posts: 7
Hello,

I am simply trying to get a list of all my computers (computer, domain) with the "Custom1" column shown in the custom fields window

Here is mty script:
Select Top 1000000 tblComputers.ComputerUnique, tblComputers.Domain,
tblComputers.Computername, tblCompCustom.Custom1 As [Libellé UF]
From tblComputers Inner Join
tblComputersystem On tblComputers.Computername =
tblComputersystem.Computername Inner Join
tblCompCustom On tblComputers.Computername = tblCompCustom.Computername


The result of this script is not the one I was expecting, I can only see in this result computers where the "Custom1" filed has been filled in. How can I get this list with all my computers, with even the one that do not have any info entered into this filed ?

Thanks & Regards,
Philippe
Lansweeper
#2 Posted : Wednesday, December 21, 2011 8:44:34 AM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,378
philippe.lenard wrote:
How can I get this list with all my computers, with even the one that do not have any info entered into this filed ?

You must right-click on the link between tblComputers and tblCompCustom and choose "Select all rows from tblComputers".


You then get the report shown below.

Quote:
Select Top 1000000 tblComputers.ComputerUnique, tblComputers.Domain,
tblComputers.Computername, tblCompCustom.Custom1 As [Libellé UF]
From tblComputers Inner Join
tblComputersystem On tblComputers.Computername =
tblComputersystem.Computername Left Join
tblCompCustom On tblComputers.Computername = tblCompCustom.Computername
philippe.lenard
#3 Posted : Wednesday, December 21, 2011 8:52:13 AM

Rank: Premium user

Groups: Premium Users, Member
Posts: 7
Fantastic, thanks so much for your prompt feedback.
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba