Report of indexes, FK''s, PK''s required as we get in ERWin

  • Is there any way to get report on

    List of Table and Fields

    List of FK's and PK's

    Fields and the Keys

    Sanjay Masawan

  • Research SYSOBJECTS, SYSINDEXES, SYSCOLUMNS, SYSCONSTRAINTS....



    Good Hunting!

    AJ Ahrens


    webmaster@kritter.net

  • Isnt there any Report instead os firing queries

  • You'll have to do some work because there's no premade report. But this can get you started :

    Select * from INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS

    Select * from INFORMATION_SCHEMA.KEY_COLUMN_USAGE

    Those views are all located in the master database, run it just like and sp_* proc from any db you need to extract info from.

  • Go to BOL - select the index tab - and enter sp_help.

    This may not give you exactly what you want, but it may be a good starting point for individual objects (and the base code you'll need to try and recreate the same reports for multiple objects in a database).

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply