<?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: Show indeces of Explicit database table. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624904#M184139</link>
    <description>It's Linux, so yes'-ish'.</description>
    <pubDate>Fri, 14 Feb 2020 17:35:41 GMT</pubDate>
    <dc:creator>tomrvincent</dc:creator>
    <dc:date>2020-02-14T17:35:41Z</dc:date>
    <item>
      <title>Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624851#M184111</link>
      <description>&lt;P&gt;Anybody know how to show the indeces of a connected database table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents doesn't show them, so I tried to pass a describe to sybase...can't get it to work...tried a number of ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;execute(describe table ' MEMBER ') by sybase;&lt;BR /&gt;&lt;BR /&gt;SYBASE_43: Executed: on connection 0&lt;BR /&gt;describe table ' MEMBER '&lt;BR /&gt;&lt;BR /&gt;SYBASE: 0 row(s) affected by INSERT/UPDATE/DELETE or other statement.&lt;BR /&gt;ERROR: Error executing statement. Error Code: -156 Incorrect syntax near the keyword 'table'.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 14:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624851#M184111</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-02-14T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624874#M184126</link>
      <description>&lt;P&gt;You tried explicit SQL Pass through with the describe statement?&lt;/P&gt;
&lt;P&gt;What about querying from sp_tables or sp_columns directly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select * from mysybase.sp_tables&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144199"&gt;@tomrvincent&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Anybody know how to show the indeces of a connected database table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents doesn't show them, so I tried to pass a describe to sybase...can't get it to work...tried a number of ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;execute(describe table ' MEMBER ') by sybase;&lt;BR /&gt;&lt;BR /&gt;SYBASE_43: Executed: on connection 0&lt;BR /&gt;describe table ' MEMBER '&lt;BR /&gt;&lt;BR /&gt;SYBASE: 0 row(s) affected by INSERT/UPDATE/DELETE or other statement.&lt;BR /&gt;ERROR: Error executing statement. Error Code: -156 Incorrect syntax near the keyword 'table'.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624874#M184126</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-14T16:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624882#M184129</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Nope...that doesn't work either.&amp;nbsp; Tried explicit and implicit.&amp;nbsp; I can't find any examples that work!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;select * from connection to sybase(select * from sp_tables);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;SYBASE_49: Prepared: on connection 0&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;select * from sp_tables&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ERROR: Error Code: -208&amp;nbsp; sp_tables not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;may produce lots of output).&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Implicit error:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;NOTE: Libref FOO was successfully assigned as follows: &lt;BR /&gt;Engine: SYBASE &lt;BR /&gt;Physical Name: RPT_XEG_2&lt;BR /&gt;29 &lt;BR /&gt;30 select * from foo.sp_tables;&lt;BR /&gt;&lt;BR /&gt;SYBASE_56: Prepared: on connection 1&lt;BR /&gt;SELECT * FROM dbo.sp_tables&lt;BR /&gt;&lt;BR /&gt;ERROR: File FOO.sp_tables.DATA does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624882#M184129</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-02-14T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624886#M184130</link>
      <description>What works in sybase directly?&lt;BR /&gt;&lt;BR /&gt;I would have expected the following to work from pass through. Do you need to specify a schema?&lt;BR /&gt;&lt;BR /&gt;select * from dbo.sp_tables&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624886#M184130</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-14T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624888#M184131</link>
      <description>No idea.  I don't have any Windows software that connects to Sybase...just SAS on Linux.&lt;BR /&gt;&lt;BR /&gt;I actually do specify a schema of dbo in my connection string.  &lt;BR /&gt;&lt;BR /&gt;Sybase dox say 'DESCRIBE INDEX FOR TABLE Customers' should work but I get errors with every variant of that I've tried.</description>
      <pubDate>Fri, 14 Feb 2020 16:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624888#M184131</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-02-14T16:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624889#M184132</link>
      <description>&lt;P&gt;Why did you give the DESCRIBE TABLE command a string instead of a table name?&lt;/P&gt;
&lt;P&gt;How does the DESCRIBE TABLE command return its results?&amp;nbsp; Does it look like a table?&amp;nbsp; Perhaps you want use this syntax instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select * from connection to sybase 
  (describe table MEMBER) 
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That syntax works well for many Teradata commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or perhaps there is some function in Sybase you can wrap around the describe table command to have its output converted to the same type of output that a normal SELECT statement would return?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624889#M184132</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-14T16:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624890#M184133</link>
      <description>Can you post the full code you're using? With just a select * from sp_tables?</description>
      <pubDate>Fri, 14 Feb 2020 16:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624890#M184133</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-14T16:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624898#M184135</link>
      <description>&lt;P&gt;Got it to work...using system proc&amp;nbsp;sp_helpindex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;29 proc sql;&lt;BR /&gt;33 select * from connection to foo( sp_helpindex CLAIM);&lt;BR /&gt;&lt;BR /&gt;SYBASE_70: Prepared: on connection 3&lt;BR /&gt;sp_helpindex CLAIM&lt;BR /&gt;&lt;BR /&gt;TRACE: sydesc()&lt;BR /&gt;SYBASE: Cursor closed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Found that proc on&amp;nbsp;&lt;A href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc36273_1251/html/sprocs/X95841.htm" target="_blank"&gt;http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc36273_1251/html/sprocs/X95841.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 17:23:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624898#M184135</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-02-14T17:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624900#M184137</link>
      <description>tried that...got this error:&lt;BR /&gt;&lt;BR /&gt;37            select * from connection to foo&lt;BR /&gt;38           (describe table CLAIM)&lt;BR /&gt;39         ;&lt;BR /&gt; &lt;BR /&gt;SYBASE_69: Prepared: on connection 3&lt;BR /&gt;describe table CLAIM&lt;BR /&gt; &lt;BR /&gt;ERROR: Error Code: -156  Incorrect syntax near the keyword 'table'.</description>
      <pubDate>Fri, 14 Feb 2020 17:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624900#M184137</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-02-14T17:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624901#M184138</link>
      <description>&lt;P&gt;Are you using ODBC driver to connect to Sybase?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/accdb/z0421269.htm" target="_blank"&gt;https://v8doc.sas.com/sashtml/accdb/z0421269.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 17:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624901#M184138</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-14T17:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Show indeces of Explicit database table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624904#M184139</link>
      <description>It's Linux, so yes'-ish'.</description>
      <pubDate>Fri, 14 Feb 2020 17:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Show-indeces-of-Explicit-database-table/m-p/624904#M184139</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-02-14T17:35:41Z</dc:date>
    </item>
  </channel>
</rss>

