<?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/ACCESS connects to SQL server db, but I can't see tables. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-connects-to-SQL-server-db-but-I-can-t-see-tables/m-p/59522#M12901</link>
    <description>If you do not know schema, Then use the following code to find it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
 connect to odbc( dsn= user= password=);&lt;BR /&gt;
&lt;BR /&gt;
  create table schema as&lt;BR /&gt;
    select * &lt;BR /&gt;
     from connection to odbc(ODBC::Sqltables)&lt;BR /&gt;
;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Fri, 29 Apr 2011 01:46:01 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-04-29T01:46:01Z</dc:date>
    <item>
      <title>SAS/ACCESS connects to SQL server db, but I can't see tables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-connects-to-SQL-server-db-but-I-can-t-see-tables/m-p/59520#M12899</link>
      <description>Hello.  I successfully set up an ODBC connection on my PC and tested it by connecting to tables using MS Access.  The following libname statement references that same odbc connection and completes successfully.&lt;BR /&gt;
  &lt;BR /&gt;
libname srcdata odbc datasrc='DM_training_layer' user='UserID' pw='XXXXX' schema="UserID"&lt;BR /&gt;
PRESERVE_TAB_NAMES = no PRESERVE_TAB_NAMES = no readbuff=1000 access=readonly;'&lt;BR /&gt;
&lt;BR /&gt;
However, when I do a proc datasets or try to reference the tables that I know exist, I get the following:&lt;BR /&gt;
&lt;BR /&gt;
proc datasets library=srcdata;&lt;BR /&gt;
&lt;BR /&gt;
                                            Directory&lt;BR /&gt;
&lt;BR /&gt;
                              Libref         SRCDATA&lt;BR /&gt;
                              Engine         ODBC&lt;BR /&gt;
                              Access         READONLY&lt;BR /&gt;
                              Physical Name  DM_training_layer&lt;BR /&gt;
                              Schema/Owner   Profserv&lt;BR /&gt;
&lt;BR /&gt;
"WARNING: No matching members in directory."&lt;BR /&gt;
&lt;BR /&gt;
Has anybody connected to SQL Server with SAS but then not been able to see the tables?  Thanks for your help.--Rhonda</description>
      <pubDate>Thu, 28 Apr 2011 19:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-connects-to-SQL-server-db-but-I-can-t-see-tables/m-p/59520#M12899</guid>
      <dc:creator>rho_tullis</dc:creator>
      <dc:date>2011-04-28T19:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS connects to SQL server db, but I can't see tables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-connects-to-SQL-server-db-but-I-can-t-see-tables/m-p/59521#M12900</link>
      <description>I just discovered that my schema name should have contained the owner of the database.  I can see tables now that I have the correct value for schema=.</description>
      <pubDate>Thu, 28 Apr 2011 20:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-connects-to-SQL-server-db-but-I-can-t-see-tables/m-p/59521#M12900</guid>
      <dc:creator>rho_tullis</dc:creator>
      <dc:date>2011-04-28T20:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS connects to SQL server db, but I can't see tables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-connects-to-SQL-server-db-but-I-can-t-see-tables/m-p/59522#M12901</link>
      <description>If you do not know schema, Then use the following code to find it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
 connect to odbc( dsn= user= password=);&lt;BR /&gt;
&lt;BR /&gt;
  create table schema as&lt;BR /&gt;
    select * &lt;BR /&gt;
     from connection to odbc(ODBC::Sqltables)&lt;BR /&gt;
;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 29 Apr 2011 01:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-connects-to-SQL-server-db-but-I-can-t-see-tables/m-p/59522#M12901</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-29T01:46:01Z</dc:date>
    </item>
  </channel>
</rss>

