<?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>Question Re: Revert BLOB to VARBINARY in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616774#M149633</link>
    <description>&lt;P&gt;Thanks for the example! awesome!&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2018 07:50:44 GMT</pubDate>
    <dc:creator>nicholas_chang</dc:creator>
    <dc:date>2018-04-23T07:50:44Z</dc:date>
    <item>
      <title>Revert BLOB to VARBINARY</title>
      <link>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaq-p/616770</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;
  &lt;P&gt;From below notes, we can convert VARBINARY to BLOB, but can we revert the change back to VARBINARY after converted to BLOB?&lt;/P&gt;
  &lt;P&gt;2220627 - FAQ: SAP HANA LOBs&lt;/P&gt;
  &lt;P&gt;2375917 - How-To: Converting SAP HANA VARBINARY columns to LOB&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Reason of asking is we would like to convert the CLUSTD column from VARBINARY to BLOB as it consume huge amount of HANA memory (200++GB) and afraid we need to reverse it incase of any query performance degradation and implication...&lt;BR /&gt;&lt;BR /&gt;Your kind input is very much appreciated. &lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Nicholas Chang&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 02:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaq-p/616770</guid>
      <dc:creator>nicholas_chang</dc:creator>
      <dc:date>2018-04-13T02:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Revert BLOB to VARBINARY</title>
      <link>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616771#M149630</link>
      <description>&lt;P&gt;Note 2375917 makes it clear that a copy of the old table structure with VARBINARY has to be kept until the conversion success including performance aspects has been verified. Instead of converting back and forth that should be the fallback option.&lt;/P&gt;
  &lt;P&gt;Also, this conversion effort, as any other changes, should be done on DEV and QA systems before the production system. If there's any doubt about the success of the change in either of these systems, don't push it to production.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Finally, yes it is possible to change data from LOB to VARBINARY as long as the size of the data fits into VARBINARY fields.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 04:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616771#M149630</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2018-04-13T04:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Revert BLOB to VARBINARY</title>
      <link>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616772#M149631</link>
      <description>&lt;P&gt;Hi Lars,&lt;/P&gt;
  &lt;P&gt;Thanks for the reply. Yes, we will first do it on DEV, in fact, the POC system. &lt;/P&gt;
  &lt;P&gt;Just want to find out the option and its possibility.&lt;/P&gt;
  &lt;P&gt;Would you mind to shed some light on how to convert BLOB back to &lt;/P&gt;
  &lt;P&gt;VARBINARY?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 13:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616772#M149631</guid>
      <dc:creator>nicholas_chang</dc:creator>
      <dc:date>2018-04-16T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Revert BLOB to VARBINARY</title>
      <link>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616773#M149632</link>
      <description>&lt;P&gt;That can be done with the same command as the VARBINARY to LOB conversion:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;ALTER TABLE ALTER &amp;lt;column&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;E.g.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;select column_name, data_type_name
from table_columns 
where table_name='RAWSTUFF';
/*
COLUMN_NAME DATA_TYPE_NAME
DATA        BLOB          
ID          BIGINT        
*/

select * from rawstuff;
/*
ID  DATA
1   Àÿî 
*/

alter table rawstuff alter ( data VARBINARY (4000));

/*
COLUMN_NAME DATA_TYPE_NAME
DATA        VARBINARY     
ID          BIGINT        
*/

select * from rawstuff;
/*
ID  DATA  
1   C0FFEE
*/&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;And with that, I'm getting my second coffee this morning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 22:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616773#M149632</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2018-04-16T22:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Revert BLOB to VARBINARY</title>
      <link>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616774#M149633</link>
      <description>&lt;P&gt;Thanks for the example! awesome!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 07:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/revert-blob-to-varbinary/qaa-p/616774#M149633</guid>
      <dc:creator>nicholas_chang</dc:creator>
      <dc:date>2018-04-23T07:50:44Z</dc:date>
    </item>
  </channel>
</rss>

