"Plamen Ratchev" <Plamen@SQLStudio.com> wrote in message
news:%23L6n8JA0HHA.3536@TK2MSFTNGP06.phx.gbl...
> It is actually a single quote that gets replaced. Since the single quote
> is used to enclose string literals, you have to use two single quotes to
> specify a single quote to be replaced. If you prefer you can use CHAR with
> the ASCII code of the single quote (39), like this:
>
> SELECT REPLACE(@foo, CHAR(39), '');
>
> HTH,
>
> Plamen Ratchev
>
http://www.SQLStudio.com >
>