‎04-19-2016 07:48 PM
Solved! Go to Solution.
‎04-26-2016 03:55 PM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssetUserRelations.Username,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblOperatingsystem.Caption As OS,
tblAssets.Memory As [RAM (MB)],
tblAssetCustom.Model,
tblNetworkAdapter.Speed As [Network Speed],
tblAssetCustom.Serialnumber,
tblAssets.Processor As CPU,
tblAssets.NrProcessors,
DateDiff(yy, tblBIOS.ReleaseDate, GetDate()) As [PC Age (Years)],
tsysAssetTypes.AssetTypeIcon10 As icon
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join tblAssetUserRelations
On tblAssets.AssetID = tblAssetUserRelations.AssetID
Inner Join tblBIOS On tblAssets.AssetID = tblBIOS.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblNetworkAdapter On tblAssets.AssetID = tblNetworkAdapter.AssetID
Where tblAssetCustom.State = 1 And tblAssetUserRelations.Type = 12
Order By tblAssetUserRelations.Username
‎04-26-2016 03:55 PM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssetUserRelations.Username,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblOperatingsystem.Caption As OS,
tblAssets.Memory As [RAM (MB)],
tblAssetCustom.Model,
tblNetworkAdapter.Speed As [Network Speed],
tblAssetCustom.Serialnumber,
tblAssets.Processor As CPU,
tblAssets.NrProcessors,
DateDiff(yy, tblBIOS.ReleaseDate, GetDate()) As [PC Age (Years)],
tsysAssetTypes.AssetTypeIcon10 As icon
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join tblAssetUserRelations
On tblAssets.AssetID = tblAssetUserRelations.AssetID
Inner Join tblBIOS On tblAssets.AssetID = tblBIOS.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblNetworkAdapter On tblAssets.AssetID = tblNetworkAdapter.AssetID
Where tblAssetCustom.State = 1 And tblAssetUserRelations.Type = 12
Order By tblAssetUserRelations.Username
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now