.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

Find the foreign key in all the tables in a Sql Server Database

Posted By: Deco     Posted Date: September 11, 2010    Points:2   Category :Sql Server
Can any one give me the Query to get the Foreign Key in all the tables?

Responses
Author: Amit Mehra             
Posted Date: September 12, 2010     Points: 5   

Hi,

You can do with SQL Script. For script please refer this site

http://blog.sqlauthority.com/2007/09/04/sql-server-2005-find-tables-with-foreign-key-constraint-in-database/

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Deco             
Posted Date: September 12, 2010     Points: 5   

Amit,

It's working fine, thanks for your link...

Regards,
Deco


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend