<?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: ODBC to MS SQL server permissions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315870#M68944</link>
    <description>&lt;PRE&gt;
You can use the following to get schema. but firstly you could try schema=dbo ,
maybe could solve your problem.

proc sql;
connect to odbc(.)
 select * from connection to odbc(ODBC::SQLTables);
quit; 


&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Dec 2016 09:54:18 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-12-01T09:54:18Z</dc:date>
    <item>
      <title>ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315612#M68878</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Was recently granted access to tables in a MS SQL Server database.&amp;nbsp; Selects on tables work fine, but when I use a libname in odbc datasrc='...'; statement and run a proc contents data=in._all_; I get nothing back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What permissions does proc contents need that I wasn't given?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 17:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315612#M68878</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-11-30T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315677#M68896</link>
      <description>I just ran that on a libname I have relatively little permission on (just read), so I don't think it's necessarily a permissions issue.&lt;BR /&gt;&lt;BR /&gt;Did you properly set the schema?  If your database uses schemas other than DBO, it may work if you run selects but won't necessarily work in conjunction with the metadata-based SAS pieces (such as this) on datasets not in the DBO schema, unless you set which schema you're accessing.</description>
      <pubDate>Wed, 30 Nov 2016 20:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315677#M68896</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2016-11-30T20:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315752#M68924</link>
      <description>&lt;P&gt;This is on a SAS server and the ODBC entry was pre-defined.&amp;nbsp; So I don't know what the schema was, unfortunately, much less if it was set properly.&amp;nbsp; I don't have access directly to the DB server.&amp;nbsp; So that's why I had to phrase the question as I did.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 01:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315752#M68924</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-12-01T01:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315870#M68944</link>
      <description>&lt;PRE&gt;
You can use the following to get schema. but firstly you could try schema=dbo ,
maybe could solve your problem.

proc sql;
connect to odbc(.)
 select * from connection to odbc(ODBC::SQLTables);
quit; 


&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 09:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315870#M68944</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-01T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315958#M68968</link>
      <description>&lt;P&gt;You may have to talk to your SAS admin then who set up the ODBC connection, as I am fairly sure that's where the problem lies.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 14:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/315958#M68968</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2016-12-01T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/316073#M69018</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; Anything I should tell them to look for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 20:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/316073#M69018</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-12-01T20:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/316074#M69019</link>
      <description>&lt;P&gt;Wow.&amp;nbsp; Didn't even know what this did.&amp;nbsp; That returned a large amount of information.&amp;nbsp; Will have the DBA compare it to what we should have assigned to us for a Table schema.&amp;nbsp; Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 20:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/316074#M69019</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-12-01T20:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/316075#M69020</link>
      <description>&lt;P&gt;They should know what to do, if you specify that the ODBC connection should include the&amp;nbsp;specific schema you're looking for. &amp;nbsp;(and,&amp;nbsp;they should be able to figure out what schema you mean if they know what tables you're accessing, so long as those&amp;nbsp;table names aren't used in mulitple schemas)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might look at&amp;nbsp;&lt;A href="https://support.sas.com/techsup/technote/ts765.pdf" target="_blank"&gt;https://support.sas.com/techsup/technote/ts765.pdf&lt;/A&gt; for more information about schemas (about halfway down the doc). &amp;nbsp;This also discusses the code KSharp included.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 20:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/316075#M69020</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2016-12-01T20:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC to MS SQL server permissions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/316255#M69084</link>
      <description>Looks like the schema wasn't included in the default definition we use to access the DB; I have to include it explicitly.  So the code KSharp provided told me what schema they had given to it.&lt;BR /&gt;&lt;BR /&gt;Thanks to all with this!&lt;BR /&gt;&lt;BR /&gt;--Ben</description>
      <pubDate>Fri, 02 Dec 2016 14:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-to-MS-SQL-server-permissions/m-p/316255#M69084</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-12-02T14:17:54Z</dc:date>
    </item>
  </channel>
</rss>

