Re: MS SQL server Meata data question

From: Andy Hassall (andy_at_andyh.co.uk)
Date: 01/13/04


Date: Tue, 13 Jan 2004 00:24:06 +0000

On Mon, 12 Jan 2004 18:32:36 -0500, "Tom Jones" <tomjones@lucent.com> wrote:

>I need to do this for Oracle too but I think the native support for Oracle
>is better and the tools built in ... I think Oracle supports something they
>call show commands that just do what I want.

 No idea about SQL Server, never used it. However, in Oracle, you look in the
'data dictionary' for metadata; it's a set of views such as USER_TABLES,
USER_TAB_COLUMNS that you query with ordinary SQL.

 See: http://otn.oracle.com/pls/db92/db92.catalog_views?remark=homepage

 'SHOW' commands are for MySQL - such as 'SHOW TABLES'. You can execute these
as queries and they return a result set, but they're not proper SQL as you
can't have WHERE clauses or use them in joins etc.

-- 
Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>


Relevant Pages

  • Re: I cant schedule more than one jobs with Oracle Scheduler
    ... scheduled jobs instead of raw sql commands if the commands tend to be ... Oracle doesn't force you to do it in some particular ... The problem is that SQL VARCHAR2 type ... wrapping it into a stored procedure will remove ...
    (comp.databases.oracle.server)
  • Help sending sql into ORACLE
    ... I want to send several sql ... "commands" into ORACLE that will not be returning any data. ... attaching it to a "record set". ...
    (comp.lang.basic.visual.database)
  • Re: About table copying
    ... Can anybody tell me how can i copy a sql table (including its ... export and import commands. ... If you actually mean to another table within a schema or another table ... Also note there are four Oracle specific groups. ...
    (comp.databases)
  • Re: Limit of 1050 columns for ANSI joins
    ... comprehensive than Oracle SQL. ... I'm trying not to have any auto-generated SQL on my system, ... Index your schema properly and think about the proper design. ...
    (comp.databases.oracle.server)
  • Re: I cant find a SETUP.EXE in the SQL Plus Client ??
    ... someone else's server for testing some SELECT statements I'm ... free client because I don't own the Oracle license. ... SQL statements. ... There is no documentation with that download. ...
    (comp.databases.oracle.tools)