March 23, 2009 at 9:12 am
Hi,
I used a fields to store latin and greek character data... The collation of my database is set to SQL_Latin1_General_CP1_CI_AS. since I used that field to store both I couldn't see the greek character when I do a select... what am I suppose to do ot sort this mess out?...
Many thanks for the help,
March 23, 2009 at 9:18 am
Collation does not affect how the data is stored, only how it is compared and sorted.
Are you using a UniCode column type (nChar or nVarchar)?
Are you using the prefix N when inserting the data.
March 23, 2009 at 9:35 am
Collation does not affect how the data is stored, only how it is compared and sorted.
Well but when you need to store Greek one of the most complex European languages you need to define the column as Greek and use collation precedence to query for the other language. Check below for details.
http://www.sqlservercentral.com/Forums/Topic655592-149-1.aspx#bm655808
http://msdn.microsoft.com/en-us/library/ms179886.aspx
Kind regards,
Gift Peddie
March 23, 2009 at 9:44 am
Gift Peddie (3/23/2009)
Collation does not affect how the data is stored, only how it is compared and sorted.
Well but when you need to store Greek one of the most complex European languages you need to define the column as Greek and use collation precedence to query for the other language. Check below for details.
http://www.sqlservercentral.com/Forums/Topic655592-149-1.aspx#bm655808
good to know, thanks .. Luckily I have never had to deal with Greek before
March 23, 2009 at 9:58 am
steveb (3/23/2009)
Collation does not affect how the data is stored, only how it is compared and sorted.Are you using a UniCode column type (nChar or nVarchar)?
Are you using the prefix N when inserting the data.
I'm using a nvarchar field but I'm doing a normal insert without specifying the prefix N...
March 24, 2009 at 3:09 am
kejeiri (3/23/2009)
steveb (3/23/2009)
Collation does not affect how the data is stored, only how it is compared and sorted.Are you using a UniCode column type (nChar or nVarchar)?
Are you using the prefix N when inserting the data.
I'm using a nvarchar field but I'm doing a normal insert without specifying the prefix N...
I added the N prefix to the insert query and I did a Break point in the program and I saw greek character but when I added them to the Sqlserver table (Nvarchar field and latin collation) I found a weird text like ??st?t??t? ?????f??????...
what I'm suppose to do?
Many thanks
March 24, 2009 at 7:50 am
I added the N prefix to the insert query and I did a Break point in the program and I saw greek character but when I added them to the Sqlserver table (Nvarchar field and latin collation) I found a weird text like ??st?t??t? ?????f??????...
what I'm suppose to do?
I posted the solution yesterday Greek and another langauge use Greek for the column collation and use collation precedence, if you find another solution I would like to know.
Kind regards,
Gift Peddie
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply