Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Ntext, nvarchar, nchar - Language specific problem

Author  Topic 

falcon13
Starting Member

4 Posts

Posted - 2008-09-16 : 10:12:02
I am using as a primary key nvarchar (90) "id". It is important to me to keep the data in native language format. I am using SQL Server 2008 EE w/Advanced tools. During the setup I set both languages to the target one ("Polish" in this case). However, when I search for specific id it does not show the results in all cases that id contains at least one language specific letter. Otherwise results are ok.

PS. I have attached database (before it was attached to an English version SQL Server).

How do I write a query or how do I re-configure server in order to get proper results.

Ex. select * from konViewWhole where id = 'Huculska-Wegierka-1934-09-09'

falcon13
Starting Member

4 Posts

Posted - 2008-09-16 : 10:13:54
The bold E letter in example is actually language specific letter in example above.! |^|

select * from konViewWhole where id = 'Huculska-W e gierka-1934-09-09'
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-16 : 10:41:57
Which collation are you using?
Accent sensitive?



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

falcon13
Starting Member

4 Posts

Posted - 2008-09-16 : 11:07:13
Yes
Go to Top of Page

falcon13
Starting Member

4 Posts

Posted - 2008-09-16 : 17:25:46
I have changed my Database language to 'Polish_100_CI_AI' and it works well now.

In order to change db lang. select it -> properties -> options

or

alter database <name of db> COLLATE Polish_100_CI_AI --no quotes needed

anyway, thanks peso for trying.
Go to Top of Page
   

- Advertisement -