<?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 data in SQL Server table via ODBC in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/410887#M26375</link>
    <description>&lt;P&gt;&lt;STRONG&gt;LinusH&lt;/STRONG&gt;, sorry for replying today, it was holiday in my country.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I uploaded some images that shows the process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The File - Open - ODBC method." style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16465i385AD97188CA9AF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_01.png" alt="The File - Open - ODBC method." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The File - Open - ODBC method.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Then it shows this alert window, but it's okay for me." style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16467i51D7AEE9F62FB5C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_02.png" alt="Then it shows this alert window, but it's okay for me." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Then it shows this alert window, but it's okay for me.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Icon of the database in the project." style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16466i77AE4F6695818BF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_03.png" alt="Icon of the database in the project." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Icon of the database in the project.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm using SAS Enterprise Guide 7.1.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 15:09:28 GMT</pubDate>
    <dc:creator>mrcostaluis</dc:creator>
    <dc:date>2017-11-06T15:09:28Z</dc:date>
    <item>
      <title>Insert data in SQL Server table via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/409090#M26239</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS Enterprise Guide 7.1 and I need your help with something:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already discover that it's possible to access an ODBC if it's was previously setup in SAS Server, but I can't do this here at work. So I saw an alternative: use the File&lt;FONT face="webdings"&gt;4&lt;/FONT&gt;Open&lt;FONT face="Webdings"&gt;4&lt;/FONT&gt;ODBC works at least to see the data from the SQL Server table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now what I want to know is: is there a way to insert data in that SQL Server table using the method above? The way I did, it seems that SAS just read and put the SQL Server data in a dataset. Am I right? Please, tell me that I am not. &lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://communities.sas.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 12:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/409090#M26239</guid>
      <dc:creator>mrcostaluis</dc:creator>
      <dc:date>2017-10-31T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data in SQL Server table via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/409200#M26241</link>
      <description>I don't know about that File4Open4ODBC. But SAS can both read and insert data via ODBC. &lt;BR /&gt;But it requires SAS/ACCESS to ODBC to run seamlessly.</description>
      <pubDate>Tue, 31 Oct 2017 16:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/409200#M26241</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-10-31T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data in SQL Server table via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/409439#M26243</link>
      <description>&lt;P&gt;&lt;STRONG&gt;LinusH&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that the difference between using a libname to connect via &lt;STRONG&gt;ODBC&lt;/STRONG&gt; and using the "&lt;STRONG&gt;File&lt;/STRONG&gt; &lt;FONT face="Webdings"&gt;4&lt;/FONT&gt; &lt;STRONG&gt;Open&lt;/STRONG&gt;&amp;nbsp;&lt;FONT face="webdings"&gt;4&lt;/FONT&gt; &lt;STRONG&gt;ODBC&lt;/STRONG&gt;" method is that the second one can use your local &lt;STRONG&gt;ODBC&lt;/STRONG&gt; connections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using "&lt;STRONG&gt;File&lt;/STRONG&gt; &lt;FONT face="Webdings"&gt;4&lt;/FONT&gt; &lt;STRONG&gt;Open&lt;/STRONG&gt;&amp;nbsp;&lt;FONT face="webdings"&gt;4&lt;/FONT&gt; &lt;STRONG&gt;ODBC&lt;/STRONG&gt;"&amp;nbsp;shows me the data from an &lt;STRONG&gt;SQL Server&lt;/STRONG&gt; table in &lt;STRONG&gt;SAS&lt;/STRONG&gt;, but I have no idea how I can insert new data in that table from &lt;STRONG&gt;SAS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About that &lt;STRONG&gt;SAS/ACCESS&lt;/STRONG&gt; to &lt;STRONG&gt;ODBC&lt;/STRONG&gt;, is there a way to&amp;nbsp;see if I have this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Obs.:&lt;/STRONG&gt; Sorry if my question is a little bit confusing, English is not my native language. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 12:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/409439#M26243</guid>
      <dc:creator>mrcostaluis</dc:creator>
      <dc:date>2017-11-01T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data in SQL Server table via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/409543#M26246</link>
      <description>Interesting, please describe how you so to get the data visible within SAS (specify if it's on SAS session or in EG).</description>
      <pubDate>Wed, 01 Nov 2017 16:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/409543#M26246</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-11-01T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data in SQL Server table via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/410887#M26375</link>
      <description>&lt;P&gt;&lt;STRONG&gt;LinusH&lt;/STRONG&gt;, sorry for replying today, it was holiday in my country.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I uploaded some images that shows the process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The File - Open - ODBC method." style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16465i385AD97188CA9AF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_01.png" alt="The File - Open - ODBC method." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The File - Open - ODBC method.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Then it shows this alert window, but it's okay for me." style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16467i51D7AEE9F62FB5C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_02.png" alt="Then it shows this alert window, but it's okay for me." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Then it shows this alert window, but it's okay for me.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Icon of the database in the project." style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16466i77AE4F6695818BF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_03.png" alt="Icon of the database in the project." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Icon of the database in the project.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm using SAS Enterprise Guide 7.1.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 15:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/410887#M26375</guid>
      <dc:creator>mrcostaluis</dc:creator>
      <dc:date>2017-11-06T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data in SQL Server table via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/411382#M26422</link>
      <description>&lt;P&gt;From EG help:&lt;/P&gt;
&lt;P&gt;"Inserting an ODBC data source&lt;/P&gt;
&lt;TABLE border="0"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;
&lt;P&gt;In order for SAS Enterprise Guide to process a task or query by using ODBC, it must first copy the data to the Enterprise Guide client computer&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This tells me that the only functionality offered here is to copy data from that source into EG/SAS in order to process it. With that in mind, an no other section in the help around this integration, I conclude that there is no way to insert/update data in an ODBC source using this method.&lt;/P&gt;
&lt;P&gt;It seems intended only for small extract for testing purposes only.&lt;/P&gt;
&lt;P&gt;As said before, you need SAS/ACCESS on the SAS installation to perform this activity.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/411382#M26422</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-11-07T22:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data in SQL Server table via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/411387#M26423</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/174833" target="_blank"&gt;Mrcostaluis&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might have to give more information on the SAS and ODBC setup you are using. You mentioned SAS server in your original post. Libname access and file menu access can both use local ODBC (I believe) ... but if you are using EG to connect to a SAS Server (or SAS GRID setup) where the processing is actually done you might be limited to what the server has access to through its connections. If you are just using EG as a front in to your local PC SAS install then you probably have less to worry about.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code placed in a SAS program node and submitted should provide a list of the SAS components that are available to the session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc Setinit; run;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you see SAS Access to ODBC then you should have libname access to use odbc libname engine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to remember is that you are still limited by the permissions setup by the user associated with the ODBC connection. If it only has read only access they you will not be able to update tables in the DB.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/411387#M26423</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2017-11-07T22:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data in SQL Server table via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/411964#M26468</link>
      <description>&lt;P&gt;LinusH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was afraid that this functionality only copy data from the SQL Server into SAS Enterprise Guide, but as you said, it's exactly what it does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 15:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-data-in-SQL-Server-table-via-ODBC/m-p/411964#M26468</guid>
      <dc:creator>mrcostaluis</dc:creator>
      <dc:date>2017-11-09T15:25:51Z</dc:date>
    </item>
  </channel>
</rss>

