Greetings!
I found this message and was very happy because I was going to be asking for pretty much the exact same report. Unfortunately when I tried to use the code from the original message I am getting an error:
Error: Data conversion failed. [ OLE DB status value (if known) = 2 ]
-
I have the following code:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblLinuxSystem.OSRelease,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblLinuxHardDisks.Filesystem,
tblLinuxHardDisks.Size,
tblLinuxHardDisks.Used,
tblLinuxHardDisks.Available,
100 - Cast(SubString(tblLinuxHardDisks.Percentage, CharIndex('%',
tblLinuxHardDisks.Percentage) - 250, 250) As Int) As FreePercentage,
tblLinuxHardDisks.MountedOn,
tblLinuxHardDisks.LastChanged
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblLinuxHardDisks On tblAssets.AssetID = tblLinuxHardDisks.AssetID
Inner Join tblLinuxSystem On tblAssets.AssetID = tblLinuxSystem.AssetID
Where 100 - Cast(SubString(tblLinuxHardDisks.Percentage, CharIndex('%',
tblLinuxHardDisks.Percentage) - 250, 250) As Int) < 10 And
tblAssetCustom.State = 1
Order By tblAssets.IPNumeric,
tblLinuxHardDisks.Filesystem
Any hints on what is wrong?