Which “special” characters are allowed in SQL Server varchar fields?

  • Hi Guys,

    I'm trying to update CompanyName Column in a table my query is very simple:

    Update dbo.CompassAD

    SET CompanyName = 'BWTS SPECIALIZED-PPC KRAAIFONTEIN'

    WHERE CompanyName = 'BWTS SPECIALIZED û PPC KRAAIFONTEIN'

    The problem is it returns no data when I execute the query and column datatype is Varchar(350).

    Thanks

  • Maybe you should use unicode? (the nvarchar data type)

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • To answer your question in the subject header, it depends on your collation. Each collation contains some special varchar characters, but they vary.

    What is the collation of your column?

    [font="Verdana"]Markus Bohse[/font]

  • Latin1_General_CI_AS

  • Hi Koen Verbeeck

    It worked changed my datatype to nvachar..thanks a lot.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply