→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎07-30-2015 07:51 PM
Solved! Go to Solution.
‎08-01-2015 02:38 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysOS.OSname,
tblAssets.Description,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.Memory,
SubQuery1.[Disk size],
tblAssets.NrProcessors As #CPU,
tblAssets.Processor,
tblAssetCustom.Model,
tblAssetCustom.Manufacturer,
tblAssetCustom.BarCode,
tblAssetCustom.Serialnumber As Serial,
tblAssets.IPAddress As [IP Address],
tblAssetCustom.PurchaseDate,
tblAssetCustom.Warrantydate,
tsysAssetTypes.AssetTypeIcon10 As icon
From tblAssets
Left Outer Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Join (Select Top 1000000 tblDiskdrives.AssetID,
Cast(Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 /
1024 As numeric) As nvarchar) As [Disk size]
From tblDiskdrives
Where tblDiskdrives.Caption = 'c:') SubQuery1 On SubQuery1.AssetID =
tblAssets.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where (tsysAssetTypes.AssetTypename Like '%windows%' Or
tsysAssetTypes.AssetTypename Like '%mac%') And tblAssetCustom.BarCode <>
'0000' And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName
‎08-01-2015 02:38 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysOS.OSname,
tblAssets.Description,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.Memory,
SubQuery1.[Disk size],
tblAssets.NrProcessors As #CPU,
tblAssets.Processor,
tblAssetCustom.Model,
tblAssetCustom.Manufacturer,
tblAssetCustom.BarCode,
tblAssetCustom.Serialnumber As Serial,
tblAssets.IPAddress As [IP Address],
tblAssetCustom.PurchaseDate,
tblAssetCustom.Warrantydate,
tsysAssetTypes.AssetTypeIcon10 As icon
From tblAssets
Left Outer Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Join (Select Top 1000000 tblDiskdrives.AssetID,
Cast(Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 /
1024 As numeric) As nvarchar) As [Disk size]
From tblDiskdrives
Where tblDiskdrives.Caption = 'c:') SubQuery1 On SubQuery1.AssetID =
tblAssets.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where (tsysAssetTypes.AssetTypename Like '%windows%' Or
tsysAssetTypes.AssetTypename Like '%mac%') And tblAssetCustom.BarCode <>
'0000' And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now