<?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: Taking log time to get the table from SQl synapse table , also consuming too much space in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965879#M375985</link>
    <description>&lt;P&gt;Regardless of use case, for analyzing performance you need to provide more information about your task. Like:&lt;/P&gt;
&lt;P&gt;- Where does your SAS session executes (vs your Synapse instance).&lt;/P&gt;
&lt;P&gt;- If SAS is on premises, what is your method of accessing Synapse (internet, direct route...)&lt;/P&gt;
&lt;P&gt;- Have you possibility to tr another client tool to perform a similar operation?&lt;/P&gt;
&lt;P&gt;- What is column definitions does your table have? I suspect you have some long varchar columns.&lt;/P&gt;
&lt;P&gt;- Rerun the query and add the following options:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' nostsuffix sastraceloc=saslog fullstimer;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please review optimization options for your libname statement, like READBUFF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2025 14:51:24 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2025-05-06T14:51:24Z</dc:date>
    <item>
      <title>Taking long time to get table from SQL Synapse table , consuming much space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965878#M375984</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the execution of below query&lt;/P&gt;
&lt;P&gt;libname synapse sqlsvr user=xxxx pw=xxxx schema="xxxxxxx";'&lt;BR /&gt;data test_1&amp;nbsp;(compress=yes);&lt;BR /&gt;set synapse.test_1&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its,&amp;nbsp; taking log time to get the table from SQl synapse table , also consuming too much space&lt;/P&gt;
&lt;P&gt;Anyone who has experience similar issue and fixed it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mushy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 06:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965878#M375984</guid>
      <dc:creator>Mushy</dc:creator>
      <dc:date>2025-05-07T06:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Taking log time to get the table from SQl synapse table , also consuming too much space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965879#M375985</link>
      <description>&lt;P&gt;Regardless of use case, for analyzing performance you need to provide more information about your task. Like:&lt;/P&gt;
&lt;P&gt;- Where does your SAS session executes (vs your Synapse instance).&lt;/P&gt;
&lt;P&gt;- If SAS is on premises, what is your method of accessing Synapse (internet, direct route...)&lt;/P&gt;
&lt;P&gt;- Have you possibility to tr another client tool to perform a similar operation?&lt;/P&gt;
&lt;P&gt;- What is column definitions does your table have? I suspect you have some long varchar columns.&lt;/P&gt;
&lt;P&gt;- Rerun the query and add the following options:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' nostsuffix sastraceloc=saslog fullstimer;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please review optimization options for your libname statement, like READBUFF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 14:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965879#M375985</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-05-06T14:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Taking log time to get the table from SQl synapse table , also consuming too much space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965882#M375987</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few questions so that more information is shared:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How much space are you expecting the output table to occupy and is this based on the input table?&lt;/LI&gt;
&lt;LI&gt;How long is the process taking and how long were you expecting it to take?&lt;/LI&gt;
&lt;LI&gt;Have you run this before without time and space issues?&lt;/LI&gt;
&lt;LI&gt;Please share the log by using the Insert Code icon "&amp;lt;/&amp;gt;".&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have in the past worked at a site where &lt;FONT face="courier new,courier"&gt;compress = yes&lt;/FONT&gt; was the default system option, and based upon the log, the size would not necessarily always be reduced. So, perhaps try without the &lt;FONT face="courier new,courier"&gt;compress = yes&lt;/FONT&gt; option. You can test out various settings with a smaller amount of observations by using the &lt;FONT face="courier new,courier"&gt;obs=&lt;/FONT&gt; data set option, to reduce your testing time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 15:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965882#M375987</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-06T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Taking log time to get the table from SQl synapse table , also consuming too much space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965903#M375995</link>
      <description>&lt;P&gt;You will get more useful answers if you post the actual SAS log of your program including notes rather than posting code that contains a syntax error.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 21:02:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965903#M375995</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-05-06T21:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Taking log time to get the table from SQl synapse table , also consuming too much space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965917#M375997</link>
      <description>&lt;P&gt;1)You could try some options of libname and proc sql.&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;options dbidirectexec bufno=100 bufsize=128k ;&lt;/STRONG&gt;
LIBNAME SQL ODBC DATAsrc=proddb SCHEMA=sas U
SER=user PASSWORD="*******" INSERT_SQL=YES 
INSERTBUFF=32767
&lt;STRONG&gt;readbuff=10000&lt;/STRONG&gt;
&lt;STRONG&gt;bulkload=yes
dbcommit=10000&lt;/STRONG&gt;
;
proc sql;
create table test_1 as
select * from sql.test_1;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) try Pass-through SQL.&lt;/P&gt;
&lt;PRE&gt;proc sql;
connect to odbc as MyODBCName (dsn="MyODBCName" user="username" password="password"  &lt;STRONG&gt;readbuff=10000 &lt;/STRONG&gt; );

create table test_1 as
select * from connection to MyODBCName (
select * from sqlsrv.test_1)
)
;
disconnect from MyODBCName ;
quit;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 01:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965917#M375997</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-07T01:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Taking log time to get the table from SQl synapse table , also consuming too much space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965955#M376004</link>
      <description>INSERTBUFF is the option to consider here. BULKLOAD and DBCOMMIT won't affect read operations.&lt;BR /&gt;Pass-through will probably have the same performance as library access. But, you could use pass-through to shorten wide columns before transfer to SAS (which would also probably work using implicit pass-through using PROC SQL and LIBNAME).</description>
      <pubDate>Wed, 07 May 2025 11:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Taking-long-time-to-get-table-from-SQL-Synapse-table-consuming/m-p/965955#M376004</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-05-07T11:56:44Z</dc:date>
    </item>
  </channel>
</rss>

