We use sql reports to schedule package deployments.
What I would like to add to these reports is the ability to count the number of failed deployment attempts ( possibly by errorcode ) that a particular package has had on an asset. This would be viewed in a report or configured as an exception to prevent a package schedule from including an asset after X number of attempts.
I have read and attempted to write this query but it is a bit beyond my current sql level.
I think that I would need to hardcode the PackageID and pull a count from tsysPackageLogs after an assetID join.
Below is a typical schedule report I run.
Thanks for any assistance on this.
Andrew
Select Top 1000000 tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblAssets.Username,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tsysIPLocations On tblAssets.IPNumeric >= tsysIPLocations.StartIP
And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Where tblSoftwareUni.softwareName Like '%Reader%' And
tblSoftware.softwareVersion = '9.3.0' And tblAssetCustom.State = 1