<?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</title>
	<atom:link href="http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Thu, 20 Jun 2013 06:45:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: S.K.C</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-444000</link>
		<dc:creator><![CDATA[S.K.C]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 09:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-444000</guid>
		<description><![CDATA[Thanks for the post..

I was reading: 
http://blog.sqlauthority.com/2013/03/25/sql-server-query-writing-strategy-sql-queries-2012-joes-2-pros-volume-1-the-sql-queries-2012-hands-on-tutorial-for-beginners/

It was hard to find out the foreign keys with respect to a primary key column.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the post..</p>
<p>I was reading:<br />
<a href="http://blog.sqlauthority.com/2013/03/25/sql-server-query-writing-strategy-sql-queries-2012-joes-2-pros-volume-1-the-sql-queries-2012-hands-on-tutorial-for-beginners/" rel="nofollow">http://blog.sqlauthority.com/2013/03/25/sql-server-query-writing-strategy-sql-queries-2012-joes-2-pros-volume-1-the-sql-queries-2012-hands-on-tutorial-for-beginners/</a></p>
<p>It was hard to find out the foreign keys with respect to a primary key column.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunil</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-437231</link>
		<dc:creator><![CDATA[sunil]]></dc:creator>
		<pubDate>Thu, 14 Mar 2013 12:05:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-437231</guid>
		<description><![CDATA[Hi pinal
I have table which is referenced buy some other tables and those referenced tables also reference to some other table
now i want to delete entry from main table where i have not set on delete cascade with all foreign keys so if i will take your query in cursor and delete the entries in references table then error comes becoz we did not set tables order
so can u help]]></description>
		<content:encoded><![CDATA[<p>Hi pinal<br />
I have table which is referenced buy some other tables and those referenced tables also reference to some other table<br />
now i want to delete entry from main table where i have not set on delete cascade with all foreign keys so if i will take your query in cursor and delete the entries in references table then error comes becoz we did not set tables order<br />
so can u help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Cohen</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-433447</link>
		<dc:creator><![CDATA[Matt Cohen]]></dc:creator>
		<pubDate>Thu, 07 Mar 2013 15:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-433447</guid>
		<description><![CDATA[I&#039;m getting the following SQL Exception Error:

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt; System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint &quot;FK_T_WEB_SUB_LINEITEM_TR_PRICE_TYPE&quot;. The conflict occurred in database &quot;Impresario&quot;, table &quot;dbo.TR_PRICE_TYPE&quot;, column &#039;id&#039;. Error inserting into t_web_sub_lineitem The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at Tessitura.WebAPI.Cart.AddPerformance(SeatRequest oSeatRequest) at Tessitura.WebAPI.Cart.Add(SeatRequest oSeatRequest) at Tessitura.WebAPI.Tessitura.ProcessSeatRequest(SeatRequest seatRequest) at Tessitura.WebAPI.Tessitura.ReserveTicketsDirect(String sWebSessionID, String sPriceType, Int32 iPerformanceNumber, Int32 iNumberOfSeats, Int32 iZone) at Tessitura.WebAPI.Tessitura.ReserveTickets(String sWebSessionID, String sPriceType, Int32 iPerformanceNumber, Int32 iNumberOfSeats, Int32 iZone) --- End of inner exception stack trace ---]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the following SQL Exception Error:</p>
<p>System.Web.Services.Protocols.SoapException: Server was unable to process request. &#8212;&gt; System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint &#8220;FK_T_WEB_SUB_LINEITEM_TR_PRICE_TYPE&#8221;. The conflict occurred in database &#8220;Impresario&#8221;, table &#8220;dbo.TR_PRICE_TYPE&#8221;, column &#8216;id&#8217;. Error inserting into t_web_sub_lineitem The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at Tessitura.WebAPI.Cart.AddPerformance(SeatRequest oSeatRequest) at Tessitura.WebAPI.Cart.Add(SeatRequest oSeatRequest) at Tessitura.WebAPI.Tessitura.ProcessSeatRequest(SeatRequest seatRequest) at Tessitura.WebAPI.Tessitura.ReserveTicketsDirect(String sWebSessionID, String sPriceType, Int32 iPerformanceNumber, Int32 iNumberOfSeats, Int32 iZone) at Tessitura.WebAPI.Tessitura.ReserveTickets(String sWebSessionID, String sPriceType, Int32 iPerformanceNumber, Int32 iNumberOfSeats, Int32 iZone) &#8212; End of inner exception stack trace &#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #001 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-368280</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #001 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 03 Nov 2012 01:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-368280</guid>
		<description><![CDATA[[...] Version 1: Using sys.schema [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Version 1: Using sys.schema [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shiva</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-353581</link>
		<dc:creator><![CDATA[shiva]]></dc:creator>
		<pubDate>Thu, 27 Sep 2012 14:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-353581</guid>
		<description><![CDATA[i need query to find child( foreign key tables) and child&#039;s child tables ..
simply i want to implement recursive cte table in above query

i found out below query but i cant stop looping 

;with child_list1(parent_table, child_table)
		as
			(	
				select o1.name as parent_table,o2.name as child_table 
				from sys.all_objects o1  
				join sys.foreign_key_columns f  on o1.object_id = f.referenced_object_id
				join sys.all_objects o2 on o2.object_id = f.parent_object_id
				where  o1.name = &#039;work_order&#039; --= (select name from sys.all_objects where object_id = 711673583)
				and o1.name  o2.name 
				union all
				
				select o1.name as parent_table,o2.name as child_table  
				from sys.all_objects o1  
				join sys.foreign_key_columns a on o1.object_id = a.referenced_object_id 
				join sys.all_objects o2 on o2.object_id = a.parent_object_id 
				inner join child_list1 cl on  cl.child_table = o1.name 
				and o1.name  cl.parent_table
				and  o1.name  o2.name 
				and  cl.parent_table  o2.name 
				
				
								
			)	
			
			select * from child_list1]]></description>
		<content:encoded><![CDATA[<p>i need query to find child( foreign key tables) and child&#8217;s child tables ..<br />
simply i want to implement recursive cte table in above query</p>
<p>i found out below query but i cant stop looping </p>
<p>;with child_list1(parent_table, child_table)<br />
		as<br />
			(<br />
				select o1.name as parent_table,o2.name as child_table<br />
				from sys.all_objects o1<br />
				join sys.foreign_key_columns f  on o1.object_id = f.referenced_object_id<br />
				join sys.all_objects o2 on o2.object_id = f.parent_object_id<br />
				where  o1.name = &#8216;work_order&#8217; &#8211;= (select name from sys.all_objects where object_id = 711673583)<br />
				and o1.name  o2.name<br />
				union all</p>
<p>				select o1.name as parent_table,o2.name as child_table<br />
				from sys.all_objects o1<br />
				join sys.foreign_key_columns a on o1.object_id = a.referenced_object_id<br />
				join sys.all_objects o2 on o2.object_id = a.parent_object_id<br />
				inner join child_list1 cl on  cl.child_table = o1.name<br />
				and o1.name  cl.parent_table<br />
				and  o1.name  o2.name<br />
				and  cl.parent_table  o2.name </p>
<p>			)	</p>
<p>			select * from child_list1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vipul Langalia</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-345339</link>
		<dc:creator><![CDATA[Vipul Langalia]]></dc:creator>
		<pubDate>Fri, 14 Sep 2012 05:29:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-345339</guid>
		<description><![CDATA[Hi Pinal Sir
Suppose Order Table has primary key
&amp; Order table is connected to OrderDetail, Employee (relation one to many)
So from Order Table I want to identify thaat with which table it has  associations (one to many relations) ?

the query should give answer OrderDetail, Employee]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal Sir<br />
Suppose Order Table has primary key<br />
&amp; Order table is connected to OrderDetail, Employee (relation one to many)<br />
So from Order Table I want to identify thaat with which table it has  associations (one to many relations) ?</p>
<p>the query should give answer OrderDetail, Employee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry B. Stinson</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-343258</link>
		<dc:creator><![CDATA[Henry B. Stinson]]></dc:creator>
		<pubDate>Wed, 12 Sep 2012 19:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-343258</guid>
		<description><![CDATA[Baratam: When designing or working with a relational database, it is very good practice to create an entity relationship diagram (ERD) for your database.  This would make it clear which are parent and which are child tables.  If your database had only five tables, this could be done on one sheet of paper.
----------------
  Jan: In:
AND NOT EXISTS (
SELECT OBJECT_NAME(i.object_id) AS tablename,
i.name AS indexname,
a.name AS columnname
FROM sys.indexes i
 .... other joins 
.....

-- you only need 
  SELECT 1
, however when building that subquery, you might need to build a test version using all those columns (and since it is a correlated subquery, modify the test version to contain an extra INNER JOIN).]]></description>
		<content:encoded><![CDATA[<p>Baratam: When designing or working with a relational database, it is very good practice to create an entity relationship diagram (ERD) for your database.  This would make it clear which are parent and which are child tables.  If your database had only five tables, this could be done on one sheet of paper.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
  Jan: In:<br />
AND NOT EXISTS (<br />
SELECT OBJECT_NAME(i.object_id) AS tablename,<br />
i.name AS indexname,<br />
a.name AS columnname<br />
FROM sys.indexes i<br />
 &#8230;. other joins<br />
&#8230;..</p>
<p>&#8211; you only need<br />
  SELECT 1<br />
, however when building that subquery, you might need to build a test version using all those columns (and since it is a correlated subquery, modify the test version to contain an extra INNER JOIN).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: egp</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-307407</link>
		<dc:creator><![CDATA[egp]]></dc:creator>
		<pubDate>Fri, 29 Jun 2012 09:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-307407</guid>
		<description><![CDATA[This is a wonderful web site for beginners...
Really this is the SQL AUTHORITY :D]]></description>
		<content:encoded><![CDATA[<p>This is a wonderful web site for beginners&#8230;<br />
Really this is the SQL AUTHORITY :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathish</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-272480</link>
		<dc:creator><![CDATA[Sathish]]></dc:creator>
		<pubDate>Thu, 05 Apr 2012 13:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-272480</guid>
		<description><![CDATA[Great Man Keep Rocking]]></description>
		<content:encoded><![CDATA[<p>Great Man Keep Rocking</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul Singi</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-269345</link>
		<dc:creator><![CDATA[Rahul Singi]]></dc:creator>
		<pubDate>Thu, 29 Mar 2012 09:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-269345</guid>
		<description><![CDATA[I have got one more query while doing Google. This query also gives me the foreign key for my database but I am getting different number of foreign key record from this query and from your query which is given above. My query is given below. 

SELECT
   FK.TABLE_NAME AS TableName,
    CU.COLUMN_NAME AS ForeignKey,
    PK.TABLE_NAME AS ReferenceTableName,
    PT.COLUMN_NAME AS ReferenceColumnName,
     C.CONSTRAINT_NAME AS  CONSTRAINT_NAME
FROM
    INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS C
INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS FK
    ON C.CONSTRAINT_NAME = FK.CONSTRAINT_NAME
INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS PK
    ON C.UNIQUE_CONSTRAINT_NAME = PK.CONSTRAINT_NAME
INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE CU
    ON C.CONSTRAINT_NAME = CU.CONSTRAINT_NAME
INNER JOIN (
            SELECT
                i1.TABLE_NAME,
                i2.COLUMN_NAME
            FROM
                INFORMATION_SCHEMA.TABLE_CONSTRAINTS i1
            INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE i2
                ON i1.CONSTRAINT_NAME = i2.CONSTRAINT_NAME
            WHERE
                i1.CONSTRAINT_TYPE = &#039;PRIMARY KEY&#039;
           ) PT
    ON PT.TABLE_NAME = PK.TABLE_NAME

Please let me know which should I use.]]></description>
		<content:encoded><![CDATA[<p>I have got one more query while doing Google. This query also gives me the foreign key for my database but I am getting different number of foreign key record from this query and from your query which is given above. My query is given below. </p>
<p>SELECT<br />
   FK.TABLE_NAME AS TableName,<br />
    CU.COLUMN_NAME AS ForeignKey,<br />
    PK.TABLE_NAME AS ReferenceTableName,<br />
    PT.COLUMN_NAME AS ReferenceColumnName,<br />
     C.CONSTRAINT_NAME AS  CONSTRAINT_NAME<br />
FROM<br />
    INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS C<br />
INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS FK<br />
    ON C.CONSTRAINT_NAME = FK.CONSTRAINT_NAME<br />
INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS PK<br />
    ON C.UNIQUE_CONSTRAINT_NAME = PK.CONSTRAINT_NAME<br />
INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE CU<br />
    ON C.CONSTRAINT_NAME = CU.CONSTRAINT_NAME<br />
INNER JOIN (<br />
            SELECT<br />
                i1.TABLE_NAME,<br />
                i2.COLUMN_NAME<br />
            FROM<br />
                INFORMATION_SCHEMA.TABLE_CONSTRAINTS i1<br />
            INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE i2<br />
                ON i1.CONSTRAINT_NAME = i2.CONSTRAINT_NAME<br />
            WHERE<br />
                i1.CONSTRAINT_TYPE = &#8216;PRIMARY KEY&#8217;<br />
           ) PT<br />
    ON PT.TABLE_NAME = PK.TABLE_NAME</p>
<p>Please let me know which should I use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sushma Jethva</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-263168</link>
		<dc:creator><![CDATA[Sushma Jethva]]></dc:creator>
		<pubDate>Thu, 15 Mar 2012 07:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-263168</guid>
		<description><![CDATA[Very helpful information..Thank You Pinal]]></description>
		<content:encoded><![CDATA[<p>Very helpful information..Thank You Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RAM AMAR</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-257163</link>
		<dc:creator><![CDATA[RAM AMAR]]></dc:creator>
		<pubDate>Mon, 27 Feb 2012 08:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-257163</guid>
		<description><![CDATA[Can we apply Foreign on two Column in Table in SQL]]></description>
		<content:encoded><![CDATA[<p>Can we apply Foreign on two Column in Table in SQL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jp</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-256369</link>
		<dc:creator><![CDATA[jp]]></dc:creator>
		<pubDate>Fri, 24 Feb 2012 19:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-256369</guid>
		<description><![CDATA[I want  query of type given below  

datatype,PKtable,PKColumn,FKtable,FKcolumn, constraintName 


pls help me.......]]></description>
		<content:encoded><![CDATA[<p>I want  query of type given below  </p>
<p>datatype,PKtable,PKColumn,FKtable,FKcolumn, constraintName </p>
<p>pls help me&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BARATAM ANIL KUMAR</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-253578</link>
		<dc:creator><![CDATA[BARATAM ANIL KUMAR]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 18:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-253578</guid>
		<description><![CDATA[i need small help

i had created different tables in my date base suppose let i have 5 tables in my data base with using primary key and foreign key now i have toknow in this five table which is my main table.?

what query i have to write for this one.]]></description>
		<content:encoded><![CDATA[<p>i need small help</p>
<p>i had created different tables in my date base suppose let i have 5 tables in my data base with using primary key and foreign key now i have toknow in this five table which is my main table.?</p>
<p>what query i have to write for this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: somasundaram</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-203680</link>
		<dc:creator><![CDATA[somasundaram]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 13:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-203680</guid>
		<description><![CDATA[i need to know the list of keys used in SQl server 2005.. plz help me anybody…]]></description>
		<content:encoded><![CDATA[<p>i need to know the list of keys used in SQl server 2005.. plz help me anybody…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ram singh</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-128247</link>
		<dc:creator><![CDATA[ram singh]]></dc:creator>
		<pubDate>Mon, 11 Apr 2011 10:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-128247</guid>
		<description><![CDATA[@TOM i m writting query to create table with fk.

CREATE TABLE ORDERS
(Order_ID integer primary key,
Order_Date datetime,
Customer_SID integer references CUSTOMER(SID),
Amount double);]]></description>
		<content:encoded><![CDATA[<p>@TOM i m writting query to create table with fk.</p>
<p>CREATE TABLE ORDERS<br />
(Order_ID integer primary key,<br />
Order_Date datetime,<br />
Customer_SID integer references CUSTOMER(SID),<br />
Amount double);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ram singh</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-128244</link>
		<dc:creator><![CDATA[ram singh]]></dc:creator>
		<pubDate>Mon, 11 Apr 2011 09:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-128244</guid>
		<description><![CDATA[@TOM  i m writting  query to create table with fk.


CREATE TABLE ORDERS
(Order_ID integer primary key,
Order_Date datetime,
Customer_SID integer references CUSTOMER(SID),
Amount double);]]></description>
		<content:encoded><![CDATA[<p>@TOM  i m writting  query to create table with fk.</p>
<p>CREATE TABLE ORDERS<br />
(Order_ID integer primary key,<br />
Order_Date datetime,<br />
Customer_SID integer references CUSTOMER(SID),<br />
Amount double);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sheetalkumar</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-122866</link>
		<dc:creator><![CDATA[sheetalkumar]]></dc:creator>
		<pubDate>Fri, 11 Mar 2011 12:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-122866</guid>
		<description><![CDATA[thanks you also say rigth and help ful solution]]></description>
		<content:encoded><![CDATA[<p>thanks you also say rigth and help ful solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohamed Bakr</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-109876</link>
		<dc:creator><![CDATA[Mohamed Bakr]]></dc:creator>
		<pubDate>Fri, 07 Jan 2011 10:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-109876</guid>
		<description><![CDATA[Thank You.]]></description>
		<content:encoded><![CDATA[<p>Thank You.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chakri :-)</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-100283</link>
		<dc:creator><![CDATA[Chakri :-)]]></dc:creator>
		<pubDate>Tue, 16 Nov 2010 07:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-100283</guid>
		<description><![CDATA[k]]></description>
		<content:encoded><![CDATA[<p>k</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clement</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-83124</link>
		<dc:creator><![CDATA[clement]]></dc:creator>
		<pubDate>Thu, 05 Aug 2010 13:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-83124</guid>
		<description><![CDATA[Thank you for these codes but i need your help seriously

The codes only display the column names but the foreign keys ar not displayed.

is there something i need to turn on?]]></description>
		<content:encoded><![CDATA[<p>Thank you for these codes but i need your help seriously</p>
<p>The codes only display the column names but the foreign keys ar not displayed.</p>
<p>is there something i need to turn on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hbunny</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-71208</link>
		<dc:creator><![CDATA[hbunny]]></dc:creator>
		<pubDate>Mon, 17 May 2010 07:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-71208</guid>
		<description><![CDATA[Thank you, not only for this post, but for your entire blog, it helped me a lot...]]></description>
		<content:encoded><![CDATA[<p>Thank you, not only for this post, but for your entire blog, it helped me a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felipe Zapata</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-64164</link>
		<dc:creator><![CDATA[Felipe Zapata]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 17:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-64164</guid>
		<description><![CDATA[Thanks a lot, I needed that!]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot, I needed that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: binni</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-58393</link>
		<dc:creator><![CDATA[binni]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 09:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-58393</guid>
		<description><![CDATA[Hello,

How can i get unique key constains of table1.]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>How can i get unique key constains of table1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zia Rizvi</title>
		<link>http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-52782</link>
		<dc:creator><![CDATA[Zia Rizvi]]></dc:creator>
		<pubDate>Fri, 05 Jun 2009 21:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/#comment-52782</guid>
		<description><![CDATA[Excellent query. I was thrown into the project to work on somebody else&#039;s database design. I was supposed to right a data export procedure and this script CAME SO HANDY so find all the keys and the to right the stored procedure that return the data i want. Iit would have been impossible to find the relationships and then develop the procedure. AWESOME AWESOME!!!!!!!!!!!!!!]]></description>
		<content:encoded><![CDATA[<p>Excellent query. I was thrown into the project to work on somebody else&#8217;s database design. I was supposed to right a data export procedure and this script CAME SO HANDY so find all the keys and the to right the stored procedure that return the data i want. Iit would have been impossible to find the relationships and then develop the procedure. AWESOME AWESOME!!!!!!!!!!!!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
