→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎10-06-2015 06:23 PM
Solved! Go to Solution.
‎10-09-2015 04:06 PM
Select Top 1000000 tblSqlDatabases.name As [DB name],
tblSqlServers.displayVersion As [SQL version],
tblSqlServers.skuName As [SQL edition],
tblAssets.AssetName,
tblAssetCustom.AssetID,
tblAssetCustom.Custom1 As [custom field 1],
tblAssetCustom.Custom2 As [custom field 2],
tblAssetCustom.Contact,
tblADusers.Displayname As [Host AD manager]
From tblSqlDatabases
Inner Join tblSqlServers On tblSqlServers.sqlServerId =
tblSqlDatabases.sqlServerId
Inner Join tblAssets On tblAssets.AssetID = tblSqlServers.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Left Join tblADusers On tblADComputers.ManagerADObjectId =
tblADusers.ADObjectID
Where tblAssetCustom.State = 1
Order By [DB name],
tblAssets.AssetName
‎10-09-2015 04:06 PM
Select Top 1000000 tblSqlDatabases.name As [DB name],
tblSqlServers.displayVersion As [SQL version],
tblSqlServers.skuName As [SQL edition],
tblAssets.AssetName,
tblAssetCustom.AssetID,
tblAssetCustom.Custom1 As [custom field 1],
tblAssetCustom.Custom2 As [custom field 2],
tblAssetCustom.Contact,
tblADusers.Displayname As [Host AD manager]
From tblSqlDatabases
Inner Join tblSqlServers On tblSqlServers.sqlServerId =
tblSqlDatabases.sqlServerId
Inner Join tblAssets On tblAssets.AssetID = tblSqlServers.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Left Join tblADusers On tblADComputers.ManagerADObjectId =
tblADusers.ADObjectID
Where tblAssetCustom.State = 1
Order By [DB name],
tblAssets.AssetName
‎10-10-2015 01:19 AM
Daniel.B wrote:
Ok, thanks for clarification. Database information is scanned from WMI and stored in table tblSQLDatabases. You can't enter custom details directly to the database, but you could enter custom data into custom fields of the computer the database is running on. Then you could create a report based on your databases which would list the content of the custom fields as well. Please find an example report below.
Note: Titles and data types of asset custom fields need to be defined under Configuration\Asset pages, section Asset custom fields.
Select Top 1000000 tblSqlDatabases.name As [DB name],
tblSqlServers.displayVersion As [SQL version],
tblSqlServers.skuName As [SQL edition],
tblAssets.AssetName,
tblAssetCustom.AssetID,
tblAssetCustom.Custom1 As [custom field 1],
tblAssetCustom.Custom2 As [custom field 2],
tblAssetCustom.Contact,
tblADusers.Displayname As [Host AD manager]
From tblSqlDatabases
Inner Join tblSqlServers On tblSqlServers.sqlServerId =
tblSqlDatabases.sqlServerId
Inner Join tblAssets On tblAssets.AssetID = tblSqlServers.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Left Join tblADusers On tblADComputers.ManagerADObjectId =
tblADusers.ADObjectID
Where tblAssetCustom.State = 1
Order By [DB name],
tblAssets.AssetName
‎10-07-2015 07:49 PM
‎10-07-2015 05:00 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now