<?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: insert only 1 record when use Proc Append to Azure Synapse SQL Pool in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831460#M2725</link>
    <description>I just tried using proc sql and insert, and it happens the same, it only insert first record</description>
    <pubDate>Thu, 01 Sep 2022 19:04:04 GMT</pubDate>
    <dc:creator>osmelbrito</dc:creator>
    <dc:date>2022-09-01T19:04:04Z</dc:date>
    <item>
      <title>insert only 1 record when use Proc Append to Azure Synapse SQL Pool</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831457#M2724</link>
      <description>&lt;P&gt;I have a Azure synapse SQL Pool where I have to insert data using SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname bet sqlsvr datasrc="BET" user=datanalitica password="XXXXXX" schema="BET" &lt;BR /&gt;                   USE_ODBC_CL=YES insertbuff=30000
                   insert_sql=yes autocommit=yes stringdates=yes
                   ;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I successfully connect to the database, but when I try to insert data using proc append&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc append base=bet.DIM_RAMO_FINANZAS () data=W_DIM_RAMO_FINANZAS nowarn ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It only inserts the first record of the dataset even though in log proc append shows that added all records&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SQLSRV_4: Prepared: on connection 2
INSERT INTO "BET"."DIM_RAMO_FINANZAS" 
("RAMO_FINANZAS_CD","FILIAL_GRUPO_SK","RAMO_FINANZAS_NM","RAMO_FINANZAS_DESC","TIPO_RAMO_CD","ORDEN_RAMO_ID","PROCESSED_DTTM")  
VALUES ( ? , ? , ? , ? , ? , ? , ? )
 
NOTE: There were 23 observations read from the data set WORK.W_DIM_RAMO_FINANZAS.
NOTE: 23 observations added.
NOTE: The data set BET.DIM_RAMO_FINANZAS has . observations and 7 variables.
 
SQLSRV_5: Executed: on connection 2
Prepared statement SQLSRV_4
 
 
Summary Statistics for SQLSVR are:
Total SQL execution seconds were:                   0.140779
3                                                          The SAS System                          14:22 Thursday, September 1, 2022

Total SQL prepare seconds were:                     0.000061
Total SQL describe seconds were:                    0.049702
Total seconds used by the SQLSVR ACCESS engine were     0.281108&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have SAS 9.4 M6&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 18:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831457#M2724</guid>
      <dc:creator>osmelbrito</dc:creator>
      <dc:date>2022-09-01T18:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: insert only 1 record when use Proc Append to Azure Synapse SQL Pool</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831460#M2725</link>
      <description>I just tried using proc sql and insert, and it happens the same, it only insert first record</description>
      <pubDate>Thu, 01 Sep 2022 19:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831460#M2725</guid>
      <dc:creator>osmelbrito</dc:creator>
      <dc:date>2022-09-01T19:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: insert only 1 record when use Proc Append to Azure Synapse SQL Pool</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831489#M2726</link>
      <description>&lt;P&gt;This looks like a problem best suited to SAS Tech Support. You could try setting DBCOMMIT to 0 to enforce a single commit for the inserts.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname bet sqlsvr datasrc="BET" user=datanalitica password="XXXXXX" schema="BET" USE_ODBC_CL=YES insertbuff=30000 dbcommit = 0
                   insert_sql=yes autocommit=yes stringdates=yes
                   ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Sep 2022 22:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831489#M2726</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-09-01T22:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: insert only 1 record when use Proc Append to Azure Synapse SQL Pool</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831552#M2727</link>
      <description>&lt;P&gt;I just tried different values of inserbuff and dbcommit and it does not work (including recommendation dbcommit=0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I used insertbuff=1 it works. But, it is supposed that this parameter increase speed for insertion? if I use 1, massive insertions could be slow?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 14:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831552#M2727</guid>
      <dc:creator>osmelbrito</dc:creator>
      <dc:date>2022-09-02T14:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: insert only 1 record when use Proc Append to Azure Synapse SQL Pool</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831697#M2728</link>
      <description>&lt;P&gt;I think you are correct - using INSERTBUFF = 1 as a workaround isn't likely to be very efficient. As already mentioned raising this with Tech Support is your best option.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 03:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/831697#M2728</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-09-04T03:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: insert only 1 record when use Proc Append to Azure Synapse SQL Pool</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/833183#M2736</link>
      <description>&lt;P&gt;I just opened a support track and the solution they found was not use&amp;nbsp;USE_ODBC_CL parameter or setting to NO&lt;/P&gt;
&lt;P&gt;after this, with this libname&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE width="100"&gt;libname bet sqlsvr datasrc="BET" user=datanalitica password=XXXXXXXXXXXXXXXXXXXX schema="BET" USE_ODBC_CL=NO insertbuff=30000&lt;/PRE&gt;
&lt;P&gt;insertion of full records works perfect&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 16:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/833183#M2736</guid>
      <dc:creator>osmelbrito</dc:creator>
      <dc:date>2022-09-13T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: insert only 1 record when use Proc Append to Azure Synapse SQL Pool</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/833207#M2737</link>
      <description>&lt;P&gt;So the explanation of that options is just as clear as mud to me.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nhsktrtipxw9n1p8ypfk9vq6fk.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nhsktrtipxw9n1p8ypfk9vq6fk.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it does tend to make sense that there should not be any need to use "block cursors", whatever the heck that means, for a simple insert.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 18:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/insert-only-1-record-when-use-Proc-Append-to-Azure-Synapse-SQL/m-p/833207#M2737</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-13T18:35:34Z</dc:date>
    </item>
  </channel>
</rss>

