<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 &#8211; Find Tables With Foreign Key Constraint in Database &#8211; Part 2</title>
	<atom:link href="http://blog.sqlauthority.com/2008/05/08/sql-server-2005-find-tables-with-foreign-key-constraint-in-database-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/05/08/sql-server-2005-find-tables-with-foreign-key-constraint-in-database-part-2/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sun, 21 Mar 2010 03:48:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rohit Dadsena</title>
		<link>http://blog.sqlauthority.com/2008/05/08/sql-server-2005-find-tables-with-foreign-key-constraint-in-database-part-2/#comment-45878</link>
		<dc:creator>Rohit Dadsena</dc:creator>
		<pubDate>Thu, 22 Jan 2009 06:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=597#comment-45878</guid>
		<description>But How can i Truncate my Database(or All Tables From Dataabase)</description>
		<content:encoded><![CDATA[<p>But How can i Truncate my Database(or All Tables From Dataabase)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit Dadsena</title>
		<link>http://blog.sqlauthority.com/2008/05/08/sql-server-2005-find-tables-with-foreign-key-constraint-in-database-part-2/#comment-45877</link>
		<dc:creator>Rohit Dadsena</dc:creator>
		<pubDate>Thu, 22 Jan 2009 06:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=597#comment-45877</guid>
		<description>U really saved me lot of time.</description>
		<content:encoded><![CDATA[<p>U really saved me lot of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd Owens</title>
		<link>http://blog.sqlauthority.com/2008/05/08/sql-server-2005-find-tables-with-foreign-key-constraint-in-database-part-2/#comment-44892</link>
		<dc:creator>Todd Owens</dc:creator>
		<pubDate>Wed, 17 Dec 2008 20:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=597#comment-44892</guid>
		<description>Bob Shultz:

Schema Names added below 

USE AdventureWorks
GO
SELECT 
f.name AS ForeignKey, 
SCHEMA_NAME(o.schema_id) AS SchemaName,
OBJECT_NAME(f.parent_object_id) AS TableName,
COL_NAME(fc.parent_object_id,fc.parent_column_id) AS ColumnName,
OBJECT_NAME (f.referenced_object_id) AS ReferenceTableName,
COL_NAME(fc.referenced_object_id,fc.referenced_column_id) AS ReferenceColumnName,
f.update_referential_action_desc AS UpdateAction,
f.delete_referential_action_desc AS DeleteAction
FROM sys.foreign_keys AS f
JOIN sys.foreign_key_columns AS fc
    ON f.OBJECT_ID = fc.constraint_object_id
JOIN sys.objects o
    ON f.parent_object_id = o.object_id
ORDER BY 
SchemaName ASC,
TableName ASC, 
ColumnName ASC</description>
		<content:encoded><![CDATA[<p>Bob Shultz:</p>
<p>Schema Names added below </p>
<p>USE AdventureWorks<br />
GO<br />
SELECT<br />
f.name AS ForeignKey,<br />
SCHEMA_NAME(o.schema_id) AS SchemaName,<br />
OBJECT_NAME(f.parent_object_id) AS TableName,<br />
COL_NAME(fc.parent_object_id,fc.parent_column_id) AS ColumnName,<br />
OBJECT_NAME (f.referenced_object_id) AS ReferenceTableName,<br />
COL_NAME(fc.referenced_object_id,fc.referenced_column_id) AS ReferenceColumnName,<br />
f.update_referential_action_desc AS UpdateAction,<br />
f.delete_referential_action_desc AS DeleteAction<br />
FROM sys.foreign_keys AS f<br />
JOIN sys.foreign_key_columns AS fc<br />
    ON f.OBJECT_ID = fc.constraint_object_id<br />
JOIN sys.objects o<br />
    ON f.parent_object_id = o.object_id<br />
ORDER BY<br />
SchemaName ASC,<br />
TableName ASC,<br />
ColumnName ASC</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Schultz</title>
		<link>http://blog.sqlauthority.com/2008/05/08/sql-server-2005-find-tables-with-foreign-key-constraint-in-database-part-2/#comment-41649</link>
		<dc:creator>Bob Schultz</dc:creator>
		<pubDate>Wed, 13 Aug 2008 16:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=597#comment-41649</guid>
		<description>Pinal,  

This article was a great help to me.  

I was wondering if you could add schema columns to the result set?

Thanks again..

Bob</description>
		<content:encoded><![CDATA[<p>Pinal,  </p>
<p>This article was a great help to me.  </p>
<p>I was wondering if you could add schema columns to the result set?</p>
<p>Thanks again..</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://blog.sqlauthority.com/2008/05/08/sql-server-2005-find-tables-with-foreign-key-constraint-in-database-part-2/#comment-39610</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Mon, 30 Jun 2008 20:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=597#comment-39610</guid>
		<description>thanks a lot, you saved me so much time!</description>
		<content:encoded><![CDATA[<p>thanks a lot, you saved me so much time!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
