‎03-25-2013 05:44 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
tblComputersystem.Lastchanged,
tsysOS.Image As icon
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
Where tblComputersystem.Domainrole > 1
Order By tblAssets.AssetName
‎04-12-2013 06:43 PM
‎04-08-2013 02:47 PM
‎04-02-2013 12:34 AM
‎04-03-2013 05:49 PM
Fossy777 wrote:
The errorlog I sent you a few days ago for another Problem.
Fossy777 wrote:
The query gives me an error: Column Names in each view or function must be unique. Column Name "CFGname" in view or function "..." is specified more than once.
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.IPNumeric,
tblAssets.Scanserver,
tblAssets.OScode,
tblAssets.SP,
tblAssets.Assettype,
tblAssets.Mac,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblAssets.Lasttriggered,
tblAssets.LastScheduled,
tblAssets.LastActiveScan,
tblAssets.LastIPScan,
tblAssets.LastLsPush,
tblAssets.LastSaved,
tblAssets.ServiceVersion,
tblAssets.LsPushVersion,
tblerrors.CFGname As CFGname1,
tblerrors.ErrorText,
tblerrors.Lastchanged,
tblerrors.ErrorType,
subquery.Domainrole,
TsysLastscan.CFGcode,
TsysWaittime.CFGname,
TsysLastscan.Lasttime,
TsysLastscan.Scantime,
TsysWaittime.Waitdays,
TsysWaittime.Trackchanges
From tblAssets
Left Join tblerrors On tblAssets.AssetID = tblerrors.AssetID
Left Join (Select tblComputersystem.AssetID,
tblComputersystem.Domainrole
From tblComputersystem) subquery On subquery.AssetID = tblAssets.AssetID
Left Join TsysLastscan On tblAssets.AssetID = TsysLastscan.AssetID
Inner Join TsysWaittime On TsysWaittime.CFGCode = TsysLastscan.CFGcode
Where tblAssets.AssetName = 'YourComputer'
Order By TsysWaittime.CFGname
‎03-29-2013 05:12 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.IPNumeric,
tblAssets.Scanserver,
tblAssets.OScode,
tblAssets.SP,
tblAssets.Assettype,
tblAssets.Mac,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblAssets.Lasttriggered,
tblAssets.LastScheduled,
tblAssets.LastActiveScan,
tblAssets.LastIPScan,
tblAssets.LastLsPush,
tblAssets.LastSaved,
tblAssets.ServiceVersion,
tblAssets.LsPushVersion,
tblErrors.CFGname,
tblErrors.ErrorText,
tblErrors.Lastchanged,
tblErrors.ErrorType,
subquery.Domainrole,
TsysLastscan.CFGcode,
TsysWaittime.CFGname,
TsysLastscan.Lasttime,
TsysLastscan.Scantime,
TsysWaittime.Waitdays,
TsysWaittime.Trackchanges
From tblAssets
Left Join tblErrors On tblAssets.AssetID = tblErrors.AssetID
Left Join (Select tblComputersystem.AssetID,
tblComputersystem.Domainrole
From tblComputersystem) subquery On subquery.AssetID = tblAssets.AssetID
Left Join TsysLastscan On tblAssets.AssetID = TsysLastscan.AssetID
Inner Join TsysWaittime On TsysWaittime.CFGCode = TsysLastscan.CFGcode
Where tblAssets.AssetName = 'YourComputer'
Order By tblErrors.CFGname
‎03-29-2013 01:37 AM
‎03-28-2013 09:38 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
tblComputersystem.Lastchanged,
tsysOS.Image As icon,
tblComputersystem.Domainrole
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
Order By tblAssets.AssetName
‎03-25-2013 06:34 PM
‎03-25-2013 06:25 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now