<?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: How to Retrieve SQL table_names, Column_names from SQL server with SAS/ACCESS OLE DB server in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Retrieve-SQL-table-names-Column-names-from-SQL-server/m-p/694462#M19633</link>
    <description>&lt;P&gt;You should be able to use information_schema to retrieve this information.&lt;/P&gt;
&lt;P&gt;Also, once you have a libname assigned, you should be able to use SASHELP views and PROC SQL DICTIONARY tables.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 09:32:42 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2020-10-27T09:32:42Z</dc:date>
    <item>
      <title>How to Retrieve SQL table_names, Column_names from SQL server with SAS/ACCESS OLE DB server</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Retrieve-SQL-table-names-Column-names-from-SQL-server/m-p/694225#M19631</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one help me to retrieve the table name &amp;amp; column name data from SQL server DB&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp; trying to work with following code, can some one correct me .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance!!&lt;/P&gt;&lt;P&gt;libname mydb oledb&lt;BR /&gt;provider=sqloledb&lt;BR /&gt;datasource=myservername&lt;BR /&gt;properties=( "initial catalog"=mydbname )&lt;BR /&gt;prompt=yes&lt;BR /&gt;schema=myschemaname&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;create detailsTN as(select * from connect to mydb (select Table_name from information_schema.tables););&lt;/P&gt;&lt;P&gt;create detailsCN as (select * from connect to mydb (select Column_name from information_schema.tables););&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 13:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Retrieve-SQL-table-names-Column-names-from-SQL-server/m-p/694225#M19631</guid>
      <dc:creator>pavanpragada0</dc:creator>
      <dc:date>2020-10-26T13:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve SQL table_names, Column_names from SQL server with SAS/ACCESS OLE DB server</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Retrieve-SQL-table-names-Column-names-from-SQL-server/m-p/694462#M19633</link>
      <description>&lt;P&gt;You should be able to use information_schema to retrieve this information.&lt;/P&gt;
&lt;P&gt;Also, once you have a libname assigned, you should be able to use SASHELP views and PROC SQL DICTIONARY tables.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 09:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Retrieve-SQL-table-names-Column-names-from-SQL-server/m-p/694462#M19633</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2020-10-27T09:32:42Z</dc:date>
    </item>
  </channel>
</rss>

