sql - How to retrieve the status of Foreign Key constraint? -


I have a SQL query to obtain all constraint name, but it is not sure that the position of how it enable / disable?

  SELECT OBJECT_NAME (Obijeisiaidiaidi) AS Nemf conference, SCHEMA_NAME (Skima_aidi) AS schema, Obijeianet (Perent_objekt_aidi) AS Teblnam as, Taip_desk S Badhytaprkar,  from * sys.objects < / pre> 

Any help?

OBJECTPROPERTY (OBJECT_ID ( 'FK_foo_bar', 'CnstIsDisabled')

oR

use the column "is_disabled"


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -