• Jacob Wilkins - Monday, July 24, 2017 2:30 PM

    Still no real detail. 🙂 Unfortunately, to us "quits working correctly" is no better than just saying there's "odd behavior".

    What exactly do you mean?Is the problem that you get incorrect results from the query, that you get some error from the query, or that the query returns correct results but performs less well on some instances than on others?

    From the descriptions you've given, I'm guessing you're talking about a performance problem, but it's all guessing until we know what problem you're trying to describe.

    Cheers!

    Well aware and this is why we are stumped by it. DBAs and everyone else, so I was hoping someone would have encountered. It blocks, for no definable reason, there are two code parts in my post, the first is the code for DEV and works in SIT, refuses to work in UAT at all. Until we remove the subquery and replace with a table variable, then all is fine. Not sure how I can explain that blocking is occurring that does not show up in the blocking list and the query which takes about 2 seconds to run normally clocks until the timeout is reached. Don't even see a deadlock victim statement. Literally no definable answer on this we can determine. Guess I might have to resort to getting MS help.