<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Writing to SQL Server encoding problem in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685247#M37056</link>
    <description>&lt;P&gt;Clarification needed:&lt;/P&gt;
&lt;P&gt;1) What OS is the SQL server?&lt;/P&gt;
&lt;P&gt;2) What is the SAS environment? (MF / Windows / Unix or linux) and&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Is it a local sas or running on a server (SAS Studio as: SAS EG / SAS UE) ?&lt;/P&gt;
&lt;P&gt;3) By what Code have you written to the SQL server ?&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Please post it using the "running man" icon.&lt;/P&gt;
&lt;P&gt;4) Check the sas configuration file used when running the code -&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;what is the locale and encoding options ?&lt;/P&gt;</description>
    <pubDate>Sun, 20 Sep 2020 08:19:58 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2020-09-20T08:19:58Z</dc:date>
    <item>
      <title>Writing to SQL Server encoding problem</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685240#M37053</link>
      <description>&lt;P&gt;I need your help please.&lt;/P&gt;&lt;P&gt;When I write a query results to a SQL Server via library - I get question marks instead of hebrew letters.&lt;/P&gt;&lt;P&gt;I use sqloledb provider, maybe I need to modify my libname statement.&lt;/P&gt;&lt;P&gt;I tried encoding="hebrew" and encoding="utf-8" - no luck.&lt;/P&gt;&lt;P&gt;When I select from other tables that contain hebrew - I see characters OK, it is just when WRITING the data.&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 06:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685240#M37053</guid>
      <dc:creator>mshparber_fnx</dc:creator>
      <dc:date>2020-09-20T06:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to SQL Server encoding problem</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685247#M37056</link>
      <description>&lt;P&gt;Clarification needed:&lt;/P&gt;
&lt;P&gt;1) What OS is the SQL server?&lt;/P&gt;
&lt;P&gt;2) What is the SAS environment? (MF / Windows / Unix or linux) and&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Is it a local sas or running on a server (SAS Studio as: SAS EG / SAS UE) ?&lt;/P&gt;
&lt;P&gt;3) By what Code have you written to the SQL server ?&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Please post it using the "running man" icon.&lt;/P&gt;
&lt;P&gt;4) Check the sas configuration file used when running the code -&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;what is the locale and encoding options ?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 08:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685247#M37056</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-09-20T08:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to SQL Server encoding problem</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685259#M37057</link>
      <description>&lt;P&gt;1) SQL Server is on Windows Server OS (not sure which)&lt;/P&gt;&lt;P&gt;2) I am using a local EG client connected to a SAS Server (probably Unix, not sure)&lt;/P&gt;&lt;P&gt;3) I am using libraries. For SQL Server I use this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sqllib oledb
datasource = SQLSERVERNAME provider=sqloledb schema='dbo' properties=('initial catalog'=MYDBNAME)
user=user password=password
READBUFF=30000 INSERTBUFF=30000
encoding="utf-8";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;4) When I look at log - I do see ENCODING=UTF8&lt;/P&gt;&lt;P&gt;I think it has smth. to do with nvarchart data types.&lt;/P&gt;&lt;P&gt;In SQL Server itself (without SAS) if I insert a value with hebrew characters with regular quotations - then I get question marks.&lt;/P&gt;&lt;P&gt;But if i put N'' before quotations - then it is OK.&lt;/P&gt;&lt;P&gt;So, how do I make SAS write to SQL Server with N''?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 10:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685259#M37057</guid>
      <dc:creator>mshparber_fnx</dc:creator>
      <dc:date>2020-09-20T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to SQL Server encoding problem</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685646#M37062</link>
      <description>&lt;P&gt;Anyone?&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 10:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685646#M37062</guid>
      <dc:creator>mshparber_fnx</dc:creator>
      <dc:date>2020-09-22T10:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to SQL Server encoding problem</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685648#M37063</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/348090"&gt;@mshparber_fnx&lt;/a&gt;&amp;nbsp;, I have asked the questions because I think the answer is the hint for how to fix the issue.&lt;/P&gt;
&lt;P&gt;I'm sorry but I have never worked with SQL Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anyone that you know work with this database, that can help you.&lt;/P&gt;
&lt;P&gt;Is there any tool that you can look at a&amp;nbsp; &lt;STRONG&gt;visible&lt;/STRONG&gt; Hebrew text in the SQL server&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and check what Hebrew - hex value - it is used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post the some couples like 'א' = "##'x, 'ת'="##"x value, I may suggest&lt;/P&gt;
&lt;P&gt;a code to translate your local Hebrew to the target Hebrew.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 10:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685648#M37063</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-09-22T10:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to SQL Server encoding problem</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685951#M37069</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/348090"&gt;@mshparber_fnx&lt;/a&gt;&amp;nbsp; - What is the encoding of your SAS session? Do Hebrew letters display OK in SAS when viewing a SAS dataset - one you are trying to load into SQL Server?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 05:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685951#M37069</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-23T05:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to SQL Server encoding problem</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685989#M37070</link>
      <description>&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98362"&gt;@Hagay&lt;/a&gt;&amp;nbsp;- the solution is to specify in libname the following code:&lt;/P&gt;&lt;P&gt;It just not working for me, but maybe it's SAS version issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;CHAR_AS_NCHAR=YES&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 10:11:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Writing-to-SQL-Server-encoding-problem/m-p/685989#M37070</guid>
      <dc:creator>mshparber_fnx</dc:creator>
      <dc:date>2020-09-23T10:11:51Z</dc:date>
    </item>
  </channel>
</rss>

