<?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: SAS reading MS SQL View Table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895822#M353931</link>
    <description>still cannot get the CRM_DATA_OUTBOX, somehow SAS select another table v_ISEE_STAFF_DATA, as shown in the logs.</description>
    <pubDate>Tue, 26 Sep 2023 03:37:00 GMT</pubDate>
    <dc:creator>Handihusen</dc:creator>
    <dc:date>2023-09-26T03:37:00Z</dc:date>
    <item>
      <title>SAS reading MS SQL View Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895397#M353768</link>
      <description>&lt;P&gt;hi, i need some help regarding SAS reading MS SQL View Table:&lt;/P&gt;
&lt;P&gt;i'm using SAS 9.4 for Windows,&lt;/P&gt;
&lt;P&gt;i already set up ODBC Connection&lt;/P&gt;
&lt;DIV id="tinyMceEditorHandihusen_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want to read View Table:&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class="ui-provider bpb bpc bab bpd bpe bpf bpg bph bpi bpj bpk bpl bpm bpn bpo bpp bpq bpr bps bpt bpu bpv bpw bpx bpy bpz bqa bqb bqc bqd bqe bqf bqg bqh bqi"&gt;v_CRM_DATA_DAILY from MS SQL server&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider bpb bpc bab bpd bpe bpf bpg bph bpi bpj bpk bpl bpm bpn bpo bpp bpq bpr bps bpt bpu bpv bpw bpx bpy bpz bqa bqb bqc bqd bqe bqf bqg bqh bqi"&gt;this is the captured form MS SQL Server:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample2.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88217iFD69AF926A61D29C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sample2.jpg" alt="sample2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm using this sas code but failed to get&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class="ui-provider bpb bpc bab bpd bpe bpf bpg bph bpi bpj bpk bpl bpm bpn bpo bpp bpq bpr bps bpt bpu bpv bpw bpx bpy bpz bqa bqb bqc bqd bqe bqf bqg bqh bqi"&gt;v_CRM_DATA_DAILY&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME X ODBC datasrc=CRMDATA user=xxxx pwd=xxxxxx;

proc sql;
connect using x;
create table CRMDAILY as select * from connection to X
( select * from v_CRM_DATA_DAILY );
quit; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;sas log:&lt;/P&gt;
&lt;P&gt;ERROR: CLI describe error: [Microsoft][ODBC SQL Server Driver][SQL Server]The SELECT permission was denied on the object 'v_ISEE_STAFF_DATA', database 'CXXXX_iSee', schema 'dbo'.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.17 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for the response and help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 07:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895397#M353768</guid>
      <dc:creator>Handihusen</dc:creator>
      <dc:date>2023-09-22T07:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading MS SQL View Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895410#M353772</link>
      <description>&lt;P&gt;Contact the mssql admin, afaik granting read access to a view is not sufficient, read access to the used tables is necessary, too.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 09:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895410#M353772</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-09-22T09:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading MS SQL View Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895421#M353777</link>
      <description>&lt;P&gt;If access has been granted, then the SAS code used is as above that I use?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 11:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895421#M353777</guid>
      <dc:creator>Handihusen</dc:creator>
      <dc:date>2023-09-22T11:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading MS SQL View Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895422#M353778</link>
      <description>&lt;P&gt;You could, but writing explicit pass through is not necessary in this case. Simpler coding:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME X ODBC datasrc=CRMDATA user=xxxx pwd=xxxxxx;

proc sql;
create table CRMDAILY as select * 
   from X.v_CRM_DATA_DAILY
;
quit; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2023 11:34:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895422#M353778</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-09-22T11:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading MS SQL View Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895822#M353931</link>
      <description>still cannot get the CRM_DATA_OUTBOX, somehow SAS select another table v_ISEE_STAFF_DATA, as shown in the logs.</description>
      <pubDate>Tue, 26 Sep 2023 03:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895822#M353931</guid>
      <dc:creator>Handihusen</dc:creator>
      <dc:date>2023-09-26T03:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading MS SQL View Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895823#M353932</link>
      <description>sorry typo: 'CRM_DATA_OUTBOX', i mean 'v_CRM_DATA_DAILY'</description>
      <pubDate>Tue, 26 Sep 2023 03:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895823#M353932</guid>
      <dc:creator>Handihusen</dc:creator>
      <dc:date>2023-09-26T03:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading MS SQL View Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895824#M353933</link>
      <description>&lt;P&gt;If you are still getting SELECT permission errors, then only your organisation's database administrators can fix that for you.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 03:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895824#M353933</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-26T03:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading MS SQL View Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895849#M353943</link>
      <description>noted &amp;amp; thanks,</description>
      <pubDate>Tue, 26 Sep 2023 07:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-MS-SQL-View-Table/m-p/895849#M353943</guid>
      <dc:creator>Handihusen</dc:creator>
      <dc:date>2023-09-26T07:59:44Z</dc:date>
    </item>
  </channel>
</rss>

