→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎08-25-2016 10:15 PM
‎03-07-2018 12:07 AM
‎09-01-2016 08:26 PM
‎09-01-2016 05:44 PM
Select Top 1000000 a1.AssetID,
a1.AssetName,
a1.Username,
tblADUsers.Office,
tblADUsers.Department,
tsysAssetRelationTypes.Name As RelationType,
a2.AssetName As ChildAssetName,
tblAssetRelations.StartDate,
tblAssetRelations.Lastchanged
From tblAssetRelations
Inner Join tblAssets a1 On a1.AssetID = tblAssetRelations.ParentAssetID
Inner Join tblAssets a2 On a2.AssetID = tblAssetRelations.ChildAssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetRelations.Type
Left Join tblADUsers On tblADUsers.Userdomain = a1.Userdomain AND tblADUsers.Username = a1.Username
Order By a1.AssetName,
ChildAssetName
‎08-30-2016 09:12 PM
‎08-30-2016 05:35 PM
‎08-30-2016 08:44 PM
Chris@BCD wrote:
User came back to me and asked if she could also get the below listed added to this report? I have tried and failed..
Username (example: nryan)
Office (example: GA073)
Department (example: 218769 ICT Field Services)
Select Top 1000000 tblAssetUserRelations.Username,
tblAssetUserRelations.Userdomain,
tblADusers.Displayname,
tblADUsers.Office,
tblADUsers.Department,
tsysAssetRelationTypes.Name As RelationType,
tblAssetUserRelations.AssetID,
tblAssets.AssetName,
tblAssetUserRelations.StartDate,
tblAssetUserRelations.Lastchanged
From tblAssetUserRelations
Inner Join tblADusers
On tblADusers.Userdomain = tblAssetUserRelations.Userdomain And
tblADusers.Username = tblAssetUserRelations.Username
Inner Join tblAssets On tblAssets.AssetID = tblAssetUserRelations.AssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetUserRelations.Type
Order By tblAssetUserRelations.Userdomain,
tblAssetUserRelations.Username
‎08-26-2016 07:34 PM
‎08-26-2016 07:18 PM
Select Top 1000000 a1.AssetID,
a1.AssetName,
tsysAssetRelationTypes.Name As RelationType,
a2.AssetName As ChildAssetName,
tblAssetRelations.StartDate,
tblAssetRelations.Lastchanged
From tblAssetRelations
Inner Join tblAssets a1 On a1.AssetID = tblAssetRelations.ParentAssetID
Inner Join tblAssets a2 On a2.AssetID = tblAssetRelations.ChildAssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetRelations.Type
Order By a1.AssetName,
ChildAssetName
Select Top 1000000 tblAssetUserRelations.Username,
tblAssetUserRelations.Userdomain,
tblADusers.Displayname,
tsysAssetRelationTypes.Name As RelationType,
tblAssetUserRelations.AssetID,
tblAssets.AssetName,
tblAssetUserRelations.StartDate,
tblAssetUserRelations.Lastchanged
From tblAssetUserRelations
Inner Join tblADusers
On tblADusers.Userdomain = tblAssetUserRelations.Userdomain And
tblADusers.Username = tblAssetUserRelations.Username
Inner Join tblAssets On tblAssets.AssetID = tblAssetUserRelations.AssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetUserRelations.Type
Order By tblAssetUserRelations.Userdomain,
tblAssetUserRelations.Username
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now