cfradenburg (4/6/2010)
Jeff, thanks for catching that. Any particular reason that you switched from charindex to patindex? Charindex can handle multiple characters and I'm assuming there's a reason you decided to change it to patindex.
Old habit of mine and still haven't broken it. Charindex should work fine here.