‎03-25-2013 02:53 PM
Select Top 1000000 web40repIPLocationlist.IPLocation,
tblAssetCustom.Custom2 As [Room Number],
tblAssetCustom.AssetID,
tblAssets.AssetUnique,
tblAssetCustom.Manufacturer As Vendor,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber As [Service Tag Number],
tblAssetCustom.Warrantydate As [Warranty End Date],
tblAssets.IPAddress,
tsysOS.OSname,
tblAssets.Processor,
tblAssets.Memory
From tblAssetCustom
Inner Join tblAssets On tblAssetCustom.AssetID = tblAssets.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID
Inner Join web40repIPLocationlist On web40repIPLocationlist.AssetID =
tblAssets.AssetID
Where tblAssetGroups.AssetGroup Like '%Server%'
Solved! Go to Solution.
‎04-03-2013 07:15 PM
Case when tblAssetCustom.Model like '%vmware%' then 'virtual' else 'physical' end
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
TsysChassisTypes.ChassisName
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblSystemEnclosure
On tblAssets.AssetID = tblSystemEnclosure.AssetID
Inner Join TsysChassisTypes On TsysChassisTypes.Chassistype =
tblSystemEnclosure.ChassisTypes
Where tblAssetCustom.State = 1
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblNetwork.Description As NIC,
tblNetwork.MACaddress
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Where tblNetwork.IPEnabled = 1 And tblAssetCustom.State = 1
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tblAssets.SP,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssets.Memory,
tblComputersystem.Lastchanged,
tsysOS.Image As icon,
tblAssets.IPAddress,
tblAssets1.AssetName As HyperVhost
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblAssetMacAddress on tblassets.AssetID = tblAssetMacAddress.AssetID
Inner Join TblHyperVGuestNetwork on TblHyperVGuestNetwork.MacAddress = tblAssetMacAddress.Mac
Left Join TblHyperVGuest on TblHyperVGuestNetwork.HyperVGuestID = TblHyperVGuest.hypervguestID
Left Join tblAssets tblAssets1 On tblAssets1.AssetID = tblHyperVGuest.AssetID
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
tblDiskdrives.Caption + '\' + Cast(Ceiling(tblDiskdrives.Size / 1024 / 1024 / 1024) As nvarchar)
‎04-12-2013 08:51 PM
Select Top 1000000 web40repIPLocationlist.IPLocation,
tblAssetCustom.Custom2 As [Room Number],
tblAssetCustom.AssetID,
tblAssets.AssetUnique,
tblAssetCustom.Manufacturer As Vendor,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber As [Service Tag Number],
tblAssetCustom.Warrantydate As [Warranty End Date],
tblAssets.IPAddress,
tsysOS.OSname,
tblAssets.Processor,
tblAssets.Memory,
Case when tblAssetCustom.Model like '%virtual%' then 'virtual' else 'physical' end as VirtualCheck,
tblDiskdrives.Caption + '\' + Cast(Ceiling(tblDiskdrives.Size / 1024 / 1024 / 1024) As nvarchar) as DiskSize
From tblAssetCustom
Inner Join tblAssets On tblAssetCustom.AssetID = tblAssets.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID
Inner Join web40repIPLocationlist On web40repIPLocationlist.AssetID =
tblAssets.AssetID
Inner Join tblDiskDrives on tblDiskDrives.AssetID = tblAssets.AssetID
Where tblAssetGroups.AssetGroup Like '%Server%'
‎04-04-2013 04:14 PM
‎04-03-2013 07:15 PM
Case when tblAssetCustom.Model like '%vmware%' then 'virtual' else 'physical' end
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
TsysChassisTypes.ChassisName
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblSystemEnclosure
On tblAssets.AssetID = tblSystemEnclosure.AssetID
Inner Join TsysChassisTypes On TsysChassisTypes.Chassistype =
tblSystemEnclosure.ChassisTypes
Where tblAssetCustom.State = 1
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblNetwork.Description As NIC,
tblNetwork.MACaddress
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Where tblNetwork.IPEnabled = 1 And tblAssetCustom.State = 1
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tblAssets.SP,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssets.Memory,
tblComputersystem.Lastchanged,
tsysOS.Image As icon,
tblAssets.IPAddress,
tblAssets1.AssetName As HyperVhost
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblAssetMacAddress on tblassets.AssetID = tblAssetMacAddress.AssetID
Inner Join TblHyperVGuestNetwork on TblHyperVGuestNetwork.MacAddress = tblAssetMacAddress.Mac
Left Join TblHyperVGuest on TblHyperVGuestNetwork.HyperVGuestID = TblHyperVGuest.hypervguestID
Left Join tblAssets tblAssets1 On tblAssets1.AssetID = tblHyperVGuest.AssetID
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
tblDiskdrives.Caption + '\' + Cast(Ceiling(tblDiskdrives.Size / 1024 / 1024 / 1024) As nvarchar)
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now