SQL Server Equivalent for Oracle System Tables/Views

We are in the process of supporting two databases (Oracle 10g, SQL Server 2005) for our application.

I want to know what is the equivalent Tables/Views in SQL Server for the Oracle System tables dba_tab_comments, dba_tab_cols

Thanks in advance



Answer this question

SQL Server Equivalent for Oracle System Tables/Views

  • the emrah

    Thanks for your help. Let me try that.


  • NeoNmaN

    You could just query sys.columns or sys.all_columns from account with DBA privilege. As for the comments, you can query sys.extended_properties (with appropriate filters) or use fn_listextendedproperty table-valued function.

  • qrli

    No, its not the same concept as in Oracle. THe INFORMATION_SCHEMA Views will give you metadata information about the database. Starting in SQL 2k5 they will be secured to show only the data that the user is granted for (e.g. Tables he has minimum Select permissions on).

    HTH, Jens Suessmeyer.

    ---
    http://www.sqlserver2005.de
    ---

  • SQL Server Equivalent for Oracle System Tables/Views