primary/Foreingn/index Details for whole schema

  • For a perticular database

    I need select query

    first select query which gives me table_name,Column_name,Primary_key

    secound select query which gives me table_name,column_name ,foreign_table_name,foreign_column_name

    third select query which gives me table_name,column_name,index_name,index_type

  • You can use these and make your query

    select * from sysconstraints

    sp_fkeys

    sp_Pkeys

    Tanx 😀

Viewing 2 posts - 1 through 1 (of 1 total)

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