• Of course the only ultimate solution to "replace bad vendor query" is "replace bad vendor." 😀

    You can set up a trace with a high threshold(s) to capture really bad queries. Then try to track back to where they came from 🙁 ... won't be easy, but don't know what else you could do.

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".