SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 querying postgressql utf-8 issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yosiasz
Flowing Fount of Yak Knowledge

USA
1634 Posts

Posted - 06/17/2013 :  16:35:15  Show Profile  Click to see yosiasz's MSN Messenger address  Reply with Quote
hi there

I create a linked server to musicbrainz postgres data on a local virtual machine.

SELECT a.*, a.name collate latin1_general_ci_as , CAST(a.name as nvarchar(1000))
FROM OPENQUERY(musicbrainz,'SELECT * FROM musicbrainz.artist_name where id = 12') As a

the result I get brings back square brackets for rows with data in Chinese, Japanese. how do I go about getting the proper character in my query ?

Thanks!

<><><><><><><><><><><><><><><><><>
If you don't have the passion to help people, you have no passion

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 06/18/2013 :  00:34:34  Show Profile  Reply with Quote
use a suitable collation which supports chinese,japanese characters


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

yosiasz
Flowing Fount of Yak Knowledge

USA
1634 Posts

Posted - 06/18/2013 :  11:10:13  Show Profile  Click to see yosiasz's MSN Messenger address  Reply with Quote
the tables also have rows with other lanaguages, is there a generic collation that can be used for all languages. I also found out I can manipulate the collation on the properties of the linked server

<><><><><><><><><><><><><><><><><>
If you don't have the passion to help people, you have no passion
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000