﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Jason S Wong  / Find Foreign Key Tables / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 17 Jun 2013 23:20:58 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Find Foreign Key Tables</title><link>http://www.sqlservercentral.com/Forums/Topic801897-1665-1.aspx</link><description>That is correct. This simple tutorial script solves the problem I had and is a sample for you to refactor and write whatever you want.CirquedeSQLeil is going to write the recusive script that query FK hierarchy and publish here.</description><pubDate>Tue, 19 Jan 2010 07:38:09 GMT</pubDate><dc:creator>jswong05</dc:creator></item><item><title>RE: Find Foreign Key Tables</title><link>http://www.sqlservercentral.com/Forums/Topic801897-1665-1.aspx</link><description>This script is a nice starter script.  What I see from the script is that it lists all of the foreign keys.  After that, you are required to manually create the hierarchy of FKs and table relationships.  Building that hierarchy is the time consuming piece.</description><pubDate>Fri, 18 Dec 2009 12:03:05 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Find Foreign Key Tables</title><link>http://www.sqlservercentral.com/Forums/Topic801897-1665-1.aspx</link><description>This URL even helps determine the columns involved in that Foreign Key.[url=http://sqlserver2000.databases.aspfaq.com/schema-how-do-i-find-all-the-foreign-keys-in-a-database.html]http://sqlserver2000.databases.aspfaq.com/schema-how-do-i-find-all-the-foreign-keys-in-a-database.html[/url]</description><pubDate>Wed, 28 Oct 2009 09:55:21 GMT</pubDate><dc:creator>asnandrey</dc:creator></item><item><title>RE: Find Foreign Key Tables</title><link>http://www.sqlservercentral.com/Forums/Topic801897-1665-1.aspx</link><description>EXEC sp_helpconstraint 'TableName' for single tables is simpler and covers all constraints.</description><pubDate>Tue, 27 Oct 2009 12:57:51 GMT</pubDate><dc:creator>Chip Broecker</dc:creator></item><item><title>RE: Find Foreign Key Tables</title><link>http://www.sqlservercentral.com/Forums/Topic801897-1665-1.aspx</link><description>simpler statementselect	 object_name(referenced_object_id) as PrimaryKeyTable	,object_name(parent_object_id)       as ForeignKeyTable	,*from	sys.foreign_keyswhere	object_name(referenced_object_id) like '%mySearchedPrimaryKeyTable%'order by  object_name(referenced_object_id)            ,object_name(parent_object_id)     </description><pubDate>Tue, 27 Oct 2009 08:02:31 GMT</pubDate><dc:creator>Norbert L. Muth, M.A.</dc:creator></item><item><title>Find Foreign Key Tables</title><link>http://www.sqlservercentral.com/Forums/Topic801897-1665-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/Primary+key/68346/"&gt;Find Foreign Key Tables&lt;/A&gt;[/B]</description><pubDate>Mon, 12 Oct 2009 19:10:18 GMT</pubDate><dc:creator>Repriser-991084</dc:creator></item></channel></rss>