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
 New to SQL Server Programming
 How to Convert varchar to nvarchar data with TSQL?

Author  Topic 

phrankbooth
Posting Yak Master

162 Posts

Posted - 2009-08-17 : 16:09:04
Hi,

I have a column of varchar data where there are characters in foreign language stored as varchar (raw). I would like to convert those and insert into a new table as nvarchar (the actual characters.)

I have not found a way to do that with TSQL, is it possible?

Thanks!!

--PhB

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-08-17 : 17:25:30
Do you have some examples?



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

phrankbooth
Posting Yak Master

162 Posts

Posted - 2009-08-17 : 18:52:19
Sure here's two:

Login(入�)

入�


Thanks!

--PhB
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-08-17 : 19:04:22
I meant in this format, so that we can work on it.
declare @sample table (data varchar(20))

insert @sample
select '�)'
And then also post your expected output.


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

- Advertisement -