<?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 Update SQL Table from CSV file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416502#M280262</link>
    <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;So I have an issue, I want to be able to update a SQL Server with a CSV file that I have imported into SAS and I think my Syntax is just wrong or I'm missing a step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: I went to File Import and found the file for it to connect to and brought the data in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 2: Take the Data from said CSV and drop the table and replace it with the new information.&lt;/P&gt;&lt;P&gt;below is the structure I have. I am pretty sure the "&lt;FONT face="Courier New"&gt;Data Imported &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; FILENAME_OF_CSV GOES HERE" is the issue I just can't see to figure how to do it. I am not sure if I need to use the Merge function or what.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc(dsn=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"MY_SERVER_NAME_GOES_HERE"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DATABASE.SCHEMA.TABLE GOES HERE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;execute (&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;FONT face="Courier New"&gt;DATABASE.SCHEMA.TABLE GOES HERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Data Imported &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; FILENAME_OF_CSV GOES HERE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;) by odbc;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;disconnect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2017 20:44:43 GMT</pubDate>
    <dc:creator>Benzula</dc:creator>
    <dc:date>2017-11-27T20:44:43Z</dc:date>
    <item>
      <title>Update SQL Table from CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416502#M280262</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;So I have an issue, I want to be able to update a SQL Server with a CSV file that I have imported into SAS and I think my Syntax is just wrong or I'm missing a step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: I went to File Import and found the file for it to connect to and brought the data in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 2: Take the Data from said CSV and drop the table and replace it with the new information.&lt;/P&gt;&lt;P&gt;below is the structure I have. I am pretty sure the "&lt;FONT face="Courier New"&gt;Data Imported &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; FILENAME_OF_CSV GOES HERE" is the issue I just can't see to figure how to do it. I am not sure if I need to use the Merge function or what.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc(dsn=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"MY_SERVER_NAME_GOES_HERE"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DATABASE.SCHEMA.TABLE GOES HERE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;execute (&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;FONT face="Courier New"&gt;DATABASE.SCHEMA.TABLE GOES HERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Data Imported &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; FILENAME_OF_CSV GOES HERE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;) by odbc;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;disconnect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 20:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416502#M280262</guid>
      <dc:creator>Benzula</dc:creator>
      <dc:date>2017-11-27T20:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Update SQL Table from CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416503#M280263</link>
      <description>&lt;P&gt;Pass thru SQL cannot access data imported into SAS - it passes commands directly to the server so all the data required must live on the server already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to use implicit pass through or a different method to load your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/179803"&gt;@Benzula&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;So I have an issue, I want to be able to update a SQL Server with a CSV file that I have imported into SAS and I think my Syntax is just wrong or I'm missing a step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1: I went to File Import and found the file for it to connect to and brought the data in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2: Take the Data from said CSV and drop the table and replace it with the new information.&lt;/P&gt;
&lt;P&gt;below is the structure I have. I am pretty sure the "&lt;FONT face="Courier New"&gt;Data Imported &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; FILENAME_OF_CSV GOES HERE" is the issue I just can't see to figure how to do it. I am not sure if I need to use the Merge function or what.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;connect&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc(dsn=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"MY_SERVER_NAME_GOES_HERE"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DATABASE.SCHEMA.TABLE GOES HERE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;execute (&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;FONT face="Courier New"&gt;DATABASE.SCHEMA.TABLE GOES HERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Data Imported &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; FILENAME_OF_CSV GOES HERE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;) by odbc;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;disconnect&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 20:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416503#M280263</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-27T20:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update SQL Table from CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416505#M280264</link>
      <description>&lt;P&gt;So if my file name that I imported was Master_Table would the below be the right way to do it implicitly? The Step before this function says "Data imported from Master_Table.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And my database was DB1&lt;/P&gt;&lt;P&gt;Schemea DBO&lt;/P&gt;&lt;P&gt;Table Name = Table1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;into DB1.DBO.Table1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Master_Table&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 21:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416505#M280264</guid>
      <dc:creator>Benzula</dc:creator>
      <dc:date>2017-11-27T21:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update SQL Table from CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416507#M280265</link>
      <description>&lt;P&gt;Read the docs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=n1spf244gkq54cn13bbiy307hknr.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n03g3i0wk3qqyyn167u9zq91z3ov" target="_blank"&gt;http://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=n1spf244gkq54cn13bbiy307hknr.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n03g3i0wk3qqyyn167u9zq91z3ov&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*-------------------------------------------------------------------
   Output 4.4 Rows Inserted with a Query

-------------------------------------------------------------------*/
proc sql;
   create table sql.newcountries
      like sql.countries;

proc sql;
   title "World's Largest Countries";
   insert into sql.newcountries
   select * from sql.countries
      where population ge 130000000;

   select name format=$20., 
          capital format=$15.,
          population format=comma15.0
      from sql.newcountries;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You would use an INSERT INTO to add your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another, possibly easier to code option may be a PROC APPEND, if the data is assigned via a libname.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 21:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416507#M280265</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-27T21:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update SQL Table from CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416508#M280266</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure of your SAS skills level, therefore I would recommend you read some of the SAS online help in order to avoid us from saying/recommending&amp;nbsp;an approach&amp;nbsp;beyond your programming knowledge!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF you have Microsoft SQL Server, you can access it via&amp;nbsp;&lt;A title="SAS/ACCESS Interface to Microsoft SQL Server" href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p0378ek9nfsu5bn1cpsc8woi6qjf.htm&amp;amp;locale=en" target="_blank"&gt;SAS/ACCESS Interface to Microsoft SQL Server&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A title="SAS/ACCESS Interface to ODBC " href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p1g72kbb0m01y1n1gm1lh532n5ru.htm&amp;amp;locale=en" target="_blank"&gt;SAS/ACCESS Interface to ODBC&amp;nbsp;.&lt;/A&gt; It all depends on which SAS/ACCESS product your organization have licensed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on how you establish connection to your SQL Server tables, be it via&lt;/P&gt;
&lt;P&gt;- Libname&amp;nbsp;Statement ---&amp;gt; Data Step &amp;amp; Proc data manipulation techniques. Including Proc SQL.&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;- SQL Pass-Through Facility ---&amp;gt; Only Proc SQL techniques.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data in the CSV file is considered&lt;/P&gt;
&lt;P&gt;- New: --&amp;gt; Insert operation&lt;/P&gt;
&lt;P&gt;- Update: --&amp;gt; Update/Modify operation&lt;/P&gt;
&lt;P&gt;- Mixed (New &amp;amp; Update): --&amp;gt; Update/Modify operation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look for the corresponding syntax that matches your desired operation within your approach (SQL / Data Step)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 21:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416508#M280266</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2017-11-27T21:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update SQL Table from CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416509#M280267</link>
      <description>&lt;P&gt;So you used PROC IMPORT to create a SAS dataset out of the CSV file and you now want to append those observations to can existing table in SQL Server?&lt;/P&gt;
&lt;P&gt;Create a libref that points to your database/schema and then use PROC APPEND to add the records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x odbc ...... ;
proc append base=x.tablename data=dsname ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Nov 2017 21:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416509#M280267</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-27T21:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Update SQL Table from CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416587#M280268</link>
      <description>&lt;P&gt;MS SQL server is perfectly capable of importing the csv on its own, so why do the unnecessary detour through SAS?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/15242757/import-csv-file-into-sql-server" target="_blank"&gt;https://stackoverflow.com/questions/15242757/import-csv-file-into-sql-server&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 07:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-SQL-Table-from-CSV-file/m-p/416587#M280268</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-28T07:33:31Z</dc:date>
    </item>
  </channel>
</rss>

