<?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 Snowflake DW with non-select SQL in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Snowflake-DW-with-non-select-SQL/m-p/1658840#M4812</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;We would like to use some non-select sql with&amp;nbsp;!EXECUTE_NON_SELECT_QUERY to create a temporary table in Snowflake side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a table called DATA which contains integer column ID and some values there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script for load part as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'SNOWFLAKE_CONNECTION';&lt;/P&gt;&lt;P&gt;sql&lt;BR /&gt;CREATE TEMPORARY TABLE TEMP (ID INT) !EXECUTE_NON_SELECT_QUERY;&lt;/P&gt;&lt;P&gt;SQL&lt;BR /&gt;INSERT INTO TEMP SELECT ID FROM DATA !EXECUTE_NON_SELECT_QUERY;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that with different DB than Snowflake, the session stays the same but with Snowflake, the second SQL is not run&amp;nbsp; with within the same session thus giving us an error&amp;nbsp;&lt;SPAN&gt;"ERROR [42S02] SQL compilation error: Table 'TEMP' does not exist or not authorized."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas how to make it so that the same session is used? Or are we looking at wrong place?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--JH&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 18:19:31 GMT</pubDate>
    <dc:creator>JHE86</dc:creator>
    <dc:date>2021-12-15T18:19:31Z</dc:date>
    <item>
      <title>Snowflake DW with non-select SQL</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Snowflake-DW-with-non-select-SQL/m-p/1658840#M4812</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;We would like to use some non-select sql with&amp;nbsp;!EXECUTE_NON_SELECT_QUERY to create a temporary table in Snowflake side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a table called DATA which contains integer column ID and some values there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script for load part as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'SNOWFLAKE_CONNECTION';&lt;/P&gt;&lt;P&gt;sql&lt;BR /&gt;CREATE TEMPORARY TABLE TEMP (ID INT) !EXECUTE_NON_SELECT_QUERY;&lt;/P&gt;&lt;P&gt;SQL&lt;BR /&gt;INSERT INTO TEMP SELECT ID FROM DATA !EXECUTE_NON_SELECT_QUERY;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that with different DB than Snowflake, the session stays the same but with Snowflake, the second SQL is not run&amp;nbsp; with within the same session thus giving us an error&amp;nbsp;&lt;SPAN&gt;"ERROR [42S02] SQL compilation error: Table 'TEMP' does not exist or not authorized."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas how to make it so that the same session is used? Or are we looking at wrong place?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--JH&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 18:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Snowflake-DW-with-non-select-SQL/m-p/1658840#M4812</guid>
      <dc:creator>JHE86</dc:creator>
      <dc:date>2021-12-15T18:19:31Z</dc:date>
    </item>
  </channel>
</rss>

