<?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: hdbsql - inline command to import database in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13780182#M4839484</link>
    <description>Thank You with the escaping arround * it work.</description>
    <pubDate>Thu, 01 Aug 2024 15:04:19 GMT</pubDate>
    <dc:creator>chladek</dc:creator>
    <dc:date>2024-08-01T15:04:19Z</dc:date>
    <item>
      <title>hdbsql - inline command to import database</title>
      <link>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaq-p/13706626</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I would like to use bash script where beside other commands I have:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;inline command:&lt;/U&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;BR /&gt;./hdbsql -n localhost -u MYUSER -p &amp;lt;mypass&amp;gt; "IMPORT "SBODEMOCZ"."*" AS BINARY FROM '/mypath/SBODEMOCZ' WITH IGNORE EXISTING;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it returns:&lt;BR /&gt;* 257: sql syntax error: incorrect syntax near "*": line 1 col 18 (at pos 18) SQLSTATE: HY000&lt;/P&gt;&lt;P&gt;When I firstly login into hdbsql console:&lt;BR /&gt;&lt;STRONG&gt;./hdbsql -n localhost -u MYUSER -p &amp;lt;mypass&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then pass the command:&lt;BR /&gt;hdbsql NDB=&amp;gt;&lt;STRONG&gt;IMPORT "SBODEMOCZ"."*" AS BINARY FROM '/mypath/SBODEMOCZ' WITH IGNORE EXISTING;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it works properly.&lt;BR /&gt;Please how can I do it as inline command?&lt;/P&gt;&lt;P&gt;Thank You&lt;BR /&gt;Regards&lt;BR /&gt;Zdenek&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 10:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaq-p/13706626</guid>
      <dc:creator>chladek</dc:creator>
      <dc:date>2024-05-20T10:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: hdbsql - inline command to import database</title>
      <link>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13706653#M4829955</link>
      <description>&lt;P&gt;You need to escape the " from the IMPORT command, otherwise the HDBSQL will interpret the second " as the end of the command.&lt;/P&gt;&lt;P&gt;Also, you could store the commands in a file and call the HDBSQL (option -I &amp;lt;file&amp;gt;) to execute them. &lt;A href="https://help.sap.com/docs/SAP_HANA_CLIENT/f1b440ded6144a54ada97ff95dac7adf/6097e699826343d0879244185d680a0d.html?version=2.17" target="_self"&gt;Official documentation here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 10:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13706653#M4829955</guid>
      <dc:creator>mamartins</dc:creator>
      <dc:date>2024-05-20T10:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: hdbsql - inline command to import database</title>
      <link>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13706936#M4829986</link>
      <description>&lt;P&gt;I do not think escape matters (but maybe for the versions of hdbsql?) as I can execute on Mac's terminal following without the issues:&lt;/P&gt;&lt;PRE&gt;hdbsql -U TECHED_DEMO_VECTOR -j "SELECT "Current_User" FROM \"DUMMY\""&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VitaliyR_0-1716221258303.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/113007iCDF8D85636B5BB48/image-size/medium?v=v2&amp;amp;px=400" alt="VitaliyR_0-1716221258303.png" title="VitaliyR_0-1716221258303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 16:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13706936#M4829986</guid>
      <dc:creator>Vitaliy-R</dc:creator>
      <dc:date>2024-05-20T16:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: hdbsql - inline command to import database</title>
      <link>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13709466#M4830349</link>
      <description>&lt;P&gt;Hello Zdenek,&lt;/P&gt;&lt;P&gt;I tried your inline command on Windows and Linux and got the same syntax error, but, if I escape the quotes around *, the syntax error goes away on both platforms. Could you please try that and see if it works for you as well?&amp;nbsp;&lt;BR /&gt;./hdbsql -n localhost -u MYUSER -p &amp;lt;mypass&amp;gt; "IMPORT "SBODEMOCZ".&lt;FONT color="#000000"&gt;&lt;STRONG&gt;\"*\"&lt;/STRONG&gt; &lt;/FONT&gt;AS BINARY FROM '/mypath/SBODEMOCZ' WITH IGNORE EXISTING;"&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Jyotsana&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 15:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13709466#M4830349</guid>
      <dc:creator>jyotsana_gupta</dc:creator>
      <dc:date>2024-05-22T15:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: hdbsql - inline command to import database</title>
      <link>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13780182#M4839484</link>
      <description>Thank You with the escaping arround * it work.</description>
      <pubDate>Thu, 01 Aug 2024 15:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hdbsql-inline-command-to-import-database/qaa-p/13780182#M4839484</guid>
      <dc:creator>chladek</dc:creator>
      <dc:date>2024-08-01T15:04:19Z</dc:date>
    </item>
  </channel>
</rss>

