We help IT Professionals succeed at work.
Get Started

SQL Server select chineese characters

410 Views
Last Modified: 2012-05-11
I have a table in my sql server database

CREATE TABLE [dbo].[LANGUANGE_MPNG](
      [LANGUAGE_MPNG_ID] [int] IDENTITY(1,1) NOT NULL,
      [US_STRING_ID] [int] NOT NULL,
      [Languge_cd] [nvarchar](3) NOT NULL,
      [Language_string] [nvarchar](max) NULL,
      [CREATE_DATE] [datetime] NOT NULL
) ON [PRIMARY]

ALTER TABLE [dbo].[LANGUANGE_MPNG] ADD  CONSTRAINT [DF_LANGUANGE_MPNG_CREATE_DATE]  DEFAULT (getdate()) FOR [CREATE_DATE]

in the table I have data populated and the Language_string column contains the exact string in its actual langauge format.

I am trying to write a select as follows

SELECT [LANGUAGE_MPNG_ID]
      ,[US_STRING_ID]
      ,[Languge_cd]
      ,[Language_string]
      ,[CREATE_DATE]
  FROM [resx].[dbo].[LANGUANGE_MPNG]
  where Language_string like 'Das System ist gesperrt'

now this gets me data but when I try to use the chinesse or japanase type of fonts I can never select the row. i just get no results retruned.

But If I just remove the where condition I do the the string in its native format
 shows you the type of sting I am trying to select
Comment
Watch Question
BI Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE