• Steve Jones - SSC Editor - Thursday, February 8, 2018 12:09 PM

    This seems to work:
    UPDATE Posts
    SET content = 0xFFFE + content

    Then:
    SELECT
    Id,
    CONVERT(nVARCHAR(MAX), [Title]) AS [Title],
    CONVERT(nVARCHAR(MAX), [Content]) AS [Content]
    FROM Posts
    where Contains(Content, 'foo')

    Apparently a byte marker is needed to clean this up.

    Steve, thanks but that doesn't work.  It should actually return both rows

    For better, quicker answers, click on the following...
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/