pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Kadri Raudsepp <raudsepp.kadri@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Problem with client_encoding and PsqlODBC driver.
Date: Fri, 20 Mar 2015 09:39:44 -0700
Message-ID: <550C4D50.8030706@aklaver.com> (raw)
In-Reply-To: <CA+qYNGMsWmWwEFNB1sBu9KXcM8JXcMBp82duvjuo9r6XBGs9Fg@mail.gmail.com>
References: <CA+qYNGODy66NzmNaw7pp7Gpz+Ta1DCTeFt_wbZJViDLdC6UqMg@mail.gmail.com>
	<550C3851.1080808@aklaver.com>
	<CA+qYNGOktJFFt+ZjNErYtXYeBKDN4Y=1BMFpe7AY_A5xUP4jLQ@mail.gmail.com>
	<CA+qYNGNp=fMPiTc6+PuddmAHV7mHkNvziqK25HuDwv8jmxLD7A@mail.gmail.com>
	<550C436E.6050905@aklaver.com>
	<CA+qYNGMsWmWwEFNB1sBu9KXcM8JXcMBp82duvjuo9r6XBGs9Fg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 03/20/2015 09:28 AM, Kadri Raudsepp wrote:
>
>
> On Fri, Mar 20, 2015 at 5:57 PM, Adrian Klaver
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
>
>     On 03/20/2015 08:48 AM, Kadri Raudsepp wrote:
>
>         Sorry, didn't see the first question at first - I haven't been
>         able to
>         find a way to specify encoding with openquery, every attempt has
>         resulted in syntax errors.
>
>
>     Just to be certain you are talking about?:
>
>     https://msdn.microsoft.com/en-__us/library/ms188427.aspx
>     <https://msdn.microsoft.com/en-us/library/ms188427.aspx;
>
>
> Yes, this is what I'm using.
>
>
>
>     Some more questions:
>
>     1) Where is your Postgres server and on what OS?
>
>
> The servers in question, SQL server and Postgres server, are in
> different countries, if that's what you meant. Postgres runs on Debian
> 3.16.7 x86_64. I'm the dba for the postgres database in question, but
> not too familiar with MS tools. Data import will be done by MS dba-s in
> their location, but they have had even less luck figuring out the
> encoding issue.
>
>
>     2) Do you have pgAdmin(http://www.pgadmin.__org/
>     <http://www.pgadmin.org/;) or the psql client installed on the
>     Windows machine?
>     If so does running a query through them show the correct results?
>
>
> I did install PgAdmin III in the environment I set up for testing the
> solution, which is as close as possible to the live environments we'll
> be using. Simply running the query there gives the same garbled result,
>   "õ" instead of "õ" etc. Running "set client_encoding to latin1;
> select * from table", however, gives the correct result.
> I have given the instructions for getting the correct data via PgAdmin
> and Import Data to my colleagues, but they are strictly MS people so I'm
> yet to see how this works out.
> I would prefer if there was minimal amount of trouble on their end,
> because we'll be migrating the data while the services running on that
> data have been turned off, which means any delay will cause financial
> loss. That's why I'm looking to get the driver working.

I do not use MS products much and SQL Server not all, so I am working 
blind here. That has never stopped me before, so what I could find that 
might apply:

1)  This post:
https://social.msdn.microsoft.com/forums/sqlserver/en-US/acb718fd-0943-4e1c-95b0-067361157821/how-to...

2) Led me to:
https://technet.microsoft.com/en-us/library/ms186839%28v=sql.105%29.aspx

3) Led me to:
https://msdn.microsoft.com/en-us/library/ms144260%28v=sql.105%29.aspx

My guess is the answer lies in the above, but that is requires someone 
more SQL Server savvy then I to unravel.

>
>
>
>
>
>         Katie
>
>
>
>     --
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
>
> Katie


-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (9+ messages)  latest in thread

Message-ID: <550C4D50.8030706@aklaver.com>
Permalink:  ../550C4D50.8030706@aklaver.com/
Also on:    postgresql.org/message-id/550C4D50.8030706@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: adrian.klaver@aklaver.com, raudsepp.kadri@gmail.com
  Subject: Re: Problem with client_encoding and PsqlODBC driver.
  In-Reply-To: <550C4D50.8030706@aklaver.com>
  References: <CA+qYNGODy66NzmNaw7pp7Gpz+Ta1DCTeFt_wbZJViDLdC6UqMg@mail.gmail.com> <550C3851.1080808@aklaver.com> <CA+qYNGOktJFFt+ZjNErYtXYeBKDN4Y=1BMFpe7AY_A5xUP4jLQ@mail.gmail.com> <CA+qYNGNp=fMPiTc6+PuddmAHV7mHkNvziqK25HuDwv8jmxLD7A@mail.gmail.com> <550C436E.6050905@aklaver.com> <CA+qYNGMsWmWwEFNB1sBu9KXcM8JXcMBp82duvjuo9r6XBGs9Fg@mail.gmail.com> <550C4D50.8030706@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox