<?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: Reading MS SQL metadata from my_DB.[INFORMATION_SCHEMA].[COLUMNS]  ?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285589#M58428</link>
    <description>&lt;P&gt;See the output from the following.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc datasets library=libname;&lt;/P&gt;
&lt;P&gt;run;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2016 17:46:34 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-07-19T17:46:34Z</dc:date>
    <item>
      <title>Reading MS SQL metadata from my_DB.[INFORMATION_SCHEMA].[COLUMNS]  ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285541#M58402</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Does anyone have a hint on how I can read just the table names in an entire MS SQL libname into sas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table temp as
SELECT TABLE_NAME
FROM my_lib.[INFORMATION_SCHEMA].[COLUMNS]
WHERE TABLE_NAME LIKE 'xw_%';
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried dropping the [], I have tried dropping ".[COLUMNS]"&lt;/P&gt;
&lt;P&gt;I have tried making a temp table from the source MS SQL DB on this data, so I can just read a non-schema table directly like any other regular data set.&amp;nbsp;&amp;nbsp; It shouldn't be that hard what am I missing?&lt;/P&gt;
&lt;P&gt;last I have tried a proc&lt;/P&gt;
&lt;P&gt;print data=sashelp.vcolumn noobs;&lt;/P&gt;
&lt;P&gt;var memname name type [... etc];&lt;/P&gt;
&lt;P&gt;where libname='my_lib';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This last item seems to have hung my SAS app.&amp;nbsp; I can read and write to this libname for other tables. &amp;nbsp; TIA.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 15:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285541#M58402</guid>
      <dc:creator>kjohnsonm</dc:creator>
      <dc:date>2016-07-19T15:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reading MS SQL metadata from my_DB.[INFORMATION_SCHEMA].[COLUMNS]  ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285561#M58416</link>
      <description>&lt;P&gt;Try a proc datasets though sometimes for DB it's all blanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 16:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285561#M58416</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-19T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reading MS SQL metadata from my_DB.[INFORMATION_SCHEMA].[COLUMNS]  ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285562#M58417</link>
      <description>&lt;P&gt;Also for sashelp.vcolumns the entries are case sensitive.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Youve stated table names, is there a reason your not using vtable instead of vcolumn?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 16:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285562#M58417</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-19T16:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reading MS SQL metadata from my_DB.[INFORMATION_SCHEMA].[COLUMNS]  ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285581#M58424</link>
      <description>Thanks for the reminder.  I forgot about case ...&lt;BR /&gt;&lt;BR /&gt;proc print data=sashelp.vcolumn noobs;&lt;BR /&gt;where lower(libname)='my_lib';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;PS I also figured out the MS SQL side, the "table name" is MS's word sorry for that one, I did not fully translate the code from MS SQL to SAS.&lt;BR /&gt;&lt;BR /&gt;SELECT distinct TABLE_NAME INTO my_xw_tables FROM [my_db].[INFORMATION_SCHEMA].[COLUMNS] where TABLE_NAME like 'xw_%';</description>
      <pubDate>Tue, 19 Jul 2016 17:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285581#M58424</guid>
      <dc:creator>kjohnsonm</dc:creator>
      <dc:date>2016-07-19T17:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reading MS SQL metadata from my_DB.[INFORMATION_SCHEMA].[COLUMNS]  ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285582#M58425</link>
      <description>"Try a proc datasets though sometimes for DB it's all blanks." ---I am not sure what you mean buy this idea, however your other comment was spot on.</description>
      <pubDate>Tue, 19 Jul 2016 17:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285582#M58425</guid>
      <dc:creator>kjohnsonm</dc:creator>
      <dc:date>2016-07-19T17:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reading MS SQL metadata from my_DB.[INFORMATION_SCHEMA].[COLUMNS]  ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285589#M58428</link>
      <description>&lt;P&gt;See the output from the following.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc datasets library=libname;&lt;/P&gt;
&lt;P&gt;run;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 17:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-MS-SQL-metadata-from-my-DB-INFORMATION-SCHEMA-COLUMNS/m-p/285589#M58428</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-19T17:46:34Z</dc:date>
    </item>
  </channel>
</rss>

