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

Tag as favorite
Change the memeory size in reports to MB
usfitdci
#1 Posted : Friday, September 03, 2010 7:40:27 AM

Rank: Premium user

Groups: Member, Premium Users
Posts: 13
I finally finished this report but haveing a problem changing the Total Physical Memory from bytes to MB (from 4294144000 to 4294). Here is my code below.

Select Top 1000000 tblComputers.Computer, tblComputers.Domain, tblCompCustom.Custom2 As [Tech Contact], tblADComputers.OperatingSystem, tblComputersystem.SystemType, tblComputersystem.Model, tblComputersystem1.NumberOfProcessors As [# of Processors], tblPROCESSOR.Name As [Processor Type], tblDiskdrives.Caption As Drive, Cast(Cast(tblDiskdrives.Freespace As bigint) / 1024 / 1024 As numeric) As [Free Space], Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) As [Total Size], tblComputersystem.TotalPhysicalMemory As [Total Physical Memory], tblSoftware.softwareVersion As [Symantec Version], tblSoftware1.softwareVersion As [TSM Version], tblADComputers.OU, tblCompCustom1.LastPatched From tblComputers Inner Join tblCompCustom On tblComputers.Computername = tblCompCustom.Computername Inner Join tblADComputers On tblComputers.Computername = tblADComputers.Computername Inner Join tblComputersystem On tblComputers.Computername = tblComputersystem.Computername Inner Join tblComputersystem tblComputersystem1 On tblComputers.Computername = tblComputersystem1.Computername Inner Join tblPROCESSOR On tblComputers.Computername = tblPROCESSOR.Computername Inner Join tblDiskdrives On tblComputers.Computername = tblDiskdrives.Computername Inner Join tblSoftware On tblComputers.Computername = tblSoftware.ComputerName Inner Join tblSoftware tblSoftware1 On tblComputers.Computername = tblSoftware1.ComputerName Inner Join tblCompCustom tblCompCustom1 On tblComputers.Computername = tblCompCustom1.Computername Where Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) <> 0 And tblPROCESSOR.DeviceID = 'CPU0' And tblDiskdrives.DriveType = 3 And tblSoftware.softwareName = 'Symantec Endpoint Protection' And tblSoftware1.softwareName = 'IBM Tivoli Storage Manager Client' Order By tblComputers.Computer, Cast(Cast(tblDiskdrives.Freespace As bigint) / 1024 / 1024 As numeric), tblDiskdrives.Caption


Thanks for your help.

dc
Lansweeper
#2 Posted : Friday, September 03, 2010 1:21:30 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,370
You need to do something similar as Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric)


use

Code:
floor(Cast(Cast(TotalPhysicalMemory As bigint) / 1024 / 1024 As numeric))
Users browsing this topic
Guest
Tag 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