<?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: ODBC MySQL table update - Optional feature not implemented error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232228#M308387</link>
    <description>&lt;P&gt;Select returns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/678i94FFFF38B28E025E/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="1.jpg" title="1.jpg" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/679i4E184A0C1F5D611E/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="2.jpg" title="2.jpg" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not converting any data type. A create table with data step, insert and drop table with PROC SQL are just working fine, so the user has sufficient rights for DML operations. The only statement that fails is e.g. a simple update on a cell (tested also without a where condition, also fails)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
update  mydblib.kpi_dq_scores set status = "Check completed" where deliveryID="DLV_7_117_Y2015M10D29T0850";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Oct 2015 15:12:21 GMT</pubDate>
    <dc:creator>Onur_Goekcen</dc:creator>
    <dc:date>2015-10-29T15:12:21Z</dc:date>
    <item>
      <title>ODBC MySQL table update - Optional feature not implemented error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232197#M308383</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Dear all,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I'm trying to update a table in a MySQL database via ODBC. The connection is set up correctly and select queries work well.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;When I try to update some fields, I'm receiving the Error: Error updating table entry: [MySQL][ODBC 5.3(a) Driver][mysqld-5.6.19]Optional feature&amp;nbsp;not implemented.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Below is the statement I use:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;libname mydblib odbc datasrc=QDPM_TEST;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;proc sql;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;update mydblib.kpi_dq_scores set score= &lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;116&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;, status = &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;'Check completed'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; where deliveryID=&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;'DLV_7_117_Y2015M10D29T0850'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I've added to odbc.ini the option EnableNcharSupport=1, did not help.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Would appreciate any help.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Br,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Onur&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 13:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232197#M308383</guid>
      <dc:creator>Onur_Goekcen</dc:creator>
      <dc:date>2015-10-29T13:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC MySQL table update - Optional feature not implemented error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232201#M308384</link>
      <description>&lt;P&gt;It sounds like there is an error with your SQL statement. &amp;nbsp;Have you tried putting double quotes around text:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;update mydblib.kpi_dq_scores &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;set score= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;116&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; status = "&lt;/SPAN&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;Check completed"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where deliveryID="&lt;/SPAN&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;DLV_7_117_Y2015M10D29T0850"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Some checklist:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1 - check running the SQL directly in the database. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2 - If that works, check write permissions been given for the access&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3 - what does select * from mydblib.kpi_dq_scores return, are those variables present, and the right format?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4 - If both above are ok, then it is something in the connection part.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 13:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232201#M308384</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-10-29T13:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC MySQL table update - Optional feature not implemented error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232205#M308385</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thx for quick response.&lt;/P&gt;
&lt;P&gt;1. Double quotes are not working either. The statement works properly on MySQL&lt;/P&gt;
&lt;P&gt;2. The user used for ODBC configuration has admin rights on MySQL&lt;/P&gt;
&lt;P&gt;3. The table content is returned correctly&lt;/P&gt;
&lt;P&gt;4. I've tried in EG: can access and open all tables via the mapped ODBC library, but when trying to update any value I receive the same error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess was that the issue is either related to ODBC config (I couldn't see any meaningful option in the detailed options list when creating the ODBC connection) or data type mismatch?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Onur&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 13:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232205#M308385</guid>
      <dc:creator>Onur_Goekcen</dc:creator>
      <dc:date>2015-10-29T13:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC MySQL table update - Optional feature not implemented error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232218#M308386</link>
      <description>&lt;P&gt;What does the table returned from select * from ... look like, i.e. a proc contents. &amp;nbsp;Your not trying to put character in number or vice versa?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 14:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232218#M308386</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-10-29T14:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC MySQL table update - Optional feature not implemented error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232228#M308387</link>
      <description>&lt;P&gt;Select returns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/678i94FFFF38B28E025E/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="1.jpg" title="1.jpg" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/679i4E184A0C1F5D611E/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="2.jpg" title="2.jpg" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not converting any data type. A create table with data step, insert and drop table with PROC SQL are just working fine, so the user has sufficient rights for DML operations. The only statement that fails is e.g. a simple update on a cell (tested also without a where condition, also fails)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
update  mydblib.kpi_dq_scores set status = "Check completed" where deliveryID="DLV_7_117_Y2015M10D29T0850";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232228#M308387</guid>
      <dc:creator>Onur_Goekcen</dc:creator>
      <dc:date>2015-10-29T15:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC MySQL table update - Optional feature not implemented error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232245#M308388</link>
      <description>&lt;P&gt;After several attempts, I've decided to use the pass-through facility, it works now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL; 
  CONNECT TO ODBC (DSN="QDPM_T");    
  EXEC (update  kpi_dq_scores set status = "Check completed2" where deliveryID="DLV_7_117_Y2015M10D29T0850";) BY ODBC;            
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you for your support,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br,&lt;/P&gt;
&lt;P&gt;Onur&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232245#M308388</guid>
      <dc:creator>Onur_Goekcen</dc:creator>
      <dc:date>2015-10-29T15:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC MySQL table update - Optional feature not implemented error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232397#M308389</link>
      <description>&lt;P&gt;Yes, its an odd one. &amp;nbsp;You can put a ticket into the support desk about it. &amp;nbsp;Personally I have only ever used pass through, and in general I would do any database work on the database itself, I don't like the idea of driving one app with another. &amp;nbsp;Glad you got it fixed though.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 10:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-MySQL-table-update-Optional-feature-not-implemented-error/m-p/232397#M308389</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-10-30T10:10:55Z</dc:date>
    </item>
  </channel>
</rss>

