system table & foreygn key

  • someone know which is the table system where are stored the foreygn key constraint?

    tnx in advance!

  • This was removed by the editor as SPAM

  • Here you go:

    select

    Name, object_name(parent_obj), xtype

    from

    sysobjects where

    id

    in (select constid from sysconstraints)

    order

    by object_name(parent_obj)

     

    It returns the Constraint, the table name and the constraint type.

    Hope that helps.

     

    Daniel

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

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