There seems to be something wrong with posting quotes.
Works fine when I try here, but exactly the same thing doesn't work properly in another thread: https://www.sqlservercentral.com/Forums/FindPost1852973.aspx
Definitely something odd going on with quotes:
https://www.sqlservercentral.com/Forums/FindPost1853001.aspx
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability