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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Problems with unicode

Author  Topic 

NeilG
Aged Yak Warrior

530 Posts

Posted - 2012-10-31 : 07:21:16

I'm having a problem inserting a value into a varchar datatype field,

the value I'm trying to update a value in a column top 'vic' but when its updated it removes the accent above the c however in the same column there is a value š and the s retains its accent.

Can anyone explain why, I know I can convert the column to nvarchar and this will sort the problem but i'm confused why one is accepted the other isn't.

Also if I convert a Varchar datatype column to nvarchar would that alter any of the text at all.

-----------------------------------------------
Learning something new on SQL Server everyday.

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2012-10-31 : 07:33:20
Have a look at the ascii and unicode values for those characters.

Converting to nvarchar shouldn't affect anything other than the space taken for varchars - it might have an effect on your queries though.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -