<?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: Data transfer from SAS EG to SQL Server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/723541#M224533</link>
    <description>&lt;P&gt;Agreeing completely with what Shmuel has said, I would suggest take computing to where the data resides(In database processing)&amp;nbsp;&lt;BR /&gt;Either use SQL pass through or perform the processing to the extent possible in SQL server..&lt;BR /&gt;Here are some papers on the subject&lt;BR /&gt;&lt;A href="https://www.mwsug.org/proceedings/2014/SA/MWSUG-2014-SA03.pdf" target="_blank"&gt;https://www.mwsug.org/proceedings/2014/SA/MWSUG-2014-SA03.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mssqltips.com/sqlservertip/2703/using-sas-access-and-proc-sql-to-retrieve-sql-server-data/" target="_blank"&gt;https://www.mssqltips.com/sqlservertip/2703/using-sas-access-and-proc-sql-to-retrieve-sql-server-data/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/300-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/300-2010.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 18:02:11 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-03-04T18:02:11Z</dc:date>
    <item>
      <title>Data transfer from SAS EG to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/723490#M224519</link>
      <description>&lt;P&gt;Greeting! Could you please assist me with improving my code in order to transfer data from SAS EG (version 7.15) to Microsoft SQL Server in most efficient and fastest way? How can I improve my code or what can I add to the libname statement to be able to transfer data faster – large datasets with over 200 million rows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME out_srv SQLSVR DATAsrc=&amp;amp;datasrc. USER="&amp;amp;userid." PASSWORD="&amp;amp;spwd." SCHEMA="&amp;amp;schema." DBCOMMIT=&lt;STRONG&gt;10000&lt;/STRONG&gt; INSERTBUFF=&lt;STRONG&gt;10000&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;SQL&lt;/STRONG&gt; NOPRINT;&lt;/P&gt;&lt;P&gt;CONNECT TO SQLSVR(DATAsrc="&amp;amp;datasrc." USER="&amp;amp;userid." PASSWORD="&amp;amp;spwd.");&lt;/P&gt;&lt;P&gt;CREATE TABLE out_srv.table1 AS&lt;/P&gt;&lt;P&gt;SELECT * FROM WORK.TEMPFILE;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 15:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/723490#M224519</guid>
      <dc:creator>RENATA1</dc:creator>
      <dc:date>2021-03-04T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer from SAS EG to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/723492#M224521</link>
      <description>&lt;P&gt;Usually the communication line transfer is fast but the bottle neck is the I/O - read from hard disk and write to hard disk. You may look for options how to assign more buffers at sas side and if possible on sql server side too.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 15:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/723492#M224521</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-03-04T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer from SAS EG to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/723541#M224533</link>
      <description>&lt;P&gt;Agreeing completely with what Shmuel has said, I would suggest take computing to where the data resides(In database processing)&amp;nbsp;&lt;BR /&gt;Either use SQL pass through or perform the processing to the extent possible in SQL server..&lt;BR /&gt;Here are some papers on the subject&lt;BR /&gt;&lt;A href="https://www.mwsug.org/proceedings/2014/SA/MWSUG-2014-SA03.pdf" target="_blank"&gt;https://www.mwsug.org/proceedings/2014/SA/MWSUG-2014-SA03.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mssqltips.com/sqlservertip/2703/using-sas-access-and-proc-sql-to-retrieve-sql-server-data/" target="_blank"&gt;https://www.mssqltips.com/sqlservertip/2703/using-sas-access-and-proc-sql-to-retrieve-sql-server-data/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/300-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/300-2010.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 18:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/723541#M224533</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-04T18:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer from SAS EG to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/724108#M224797</link>
      <description>&lt;P&gt;Thank you both very much for your input and suggestions! This process is new to me, I was hoping there is a suggestive number when it comes to insertbuff and/or dbcommit; but it sounds like getting that right number is only by ‘experimenting’ &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the process of creating an empty table first and then inserting records faster than what I am doing in my code?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 02:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/724108#M224797</guid>
      <dc:creator>RENATA1</dc:creator>
      <dc:date>2021-03-06T02:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer from SAS EG to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/724124#M224808</link>
      <description>&lt;P&gt;I have no experience with SQL server, anyhow creating an empty table is usually very fast.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the time is the I/O time of copying data from one HD to another.&lt;/P&gt;
&lt;P&gt;Is it possible to replace the HD to a faster model? or use some other protocols for connection, enabling parallel transfer ?&amp;nbsp;I'm not expert of those methods.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 06:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-transfer-from-SAS-EG-to-SQL-Server/m-p/724124#M224808</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-03-06T06:42:21Z</dc:date>
    </item>
  </channel>
</rss>

