• SQLkiwi (8/1/2011)

    That explains it nicely - and Peter Larsson (SwePeso) added pretty much the exact same example as this QotD in the comments.

    It's still realistically a bug, though--even if CHAR(0) is treated as an empty string in a Windows collation, REPLACE() given an empty string as its second parameter should do nothing, not hang the connection!