3rd highest salary in sql server

SQL Server find foreign key constraints references

            FROM sys.foreign_keys
            WHERE referenced_object_id = object_id('User')
n  OR

EXEC sp_fkeys 'User'

n  OR

SELECT  OBJECT_NAME(parent_object_id) AS Parent_Object,
                        OBJECT_NAME(referenced_object_id) AS Rreferenced_Object,
            FROM sys.foreign_keys

WHERE parent_object_id = object_id('User')


Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://code-sample.com and http://code-sample.xyz
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
www.code-sample.com/. Powered by Blogger.
ASK Questions