Does anybody know what's calling the query below? I've had perfromance issues ever since upgrading. Executing sp_who2 from SQL Server Management Studio will show several commands blocked by a select query. If I run DBCC INPUTBUFFER on that SPID, that query always shows up. It also shows up in SQL Server Management Studio's Activity Monitor, under "Recent Expensive Queries".
(@serverName nvarchar(3))SELECT n.NodeID, n.IP_Address, n.Status, n.StatusLED, n.UnManaged, n.UnManageFrom, n.UnManageUntil, n.[External], n.PollInterval, n.EngineID, n.ObjectSubType, n.AgentPort, n.SNMPVersion, n.Community, n.StatCollection, n.RediscoveryInterval, n.DynamicIP, n.DNS, n.SysName, n.Caption, COALESCE(NULLIF(n.SNMPV3AuthMethod,''), 'None') AS SNMPV3AuthMethod, COALESCE(NULLIF(n.SNMPV3PrivMethod,''), 'None') AS SNMPV3PrivMethod, n.SNMPV3PrivKey, n.SNMPV3AuthKey, n.SNMPV3Username, n.SNMPV3Context, n.SNMPV3PrivKeyIsPwd, n.SNMPV3AuthKeyIsPwd, n.RWCommunity, n.EntityType, e.ServerName FROM dbo.Nodes n LEFT JOIN dbo.Engines e ON n.EngineID = e.EngineID WHERE e.ServerName=@serverName