Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to find out table relationships

Author  Topic 

Topaz
Posting Yak Master

199 Posts

Posted - 2011-10-13 : 05:06:51
I've just upgraded my CRM software and now have multiple tables where different data is held. My previous data held all records in one table, which meant querying was simple.

Now I have multiple tables how can I find how each table is 'linked together' I think the correct SQL term is call a relationship?

Any help would be appreciated.

JT

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-10-13 : 05:45:24
sp_depends
or in SSMS right click on a table and choose "show dependencies" or so...


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-13 : 05:45:46
Search for foreign key relationships and also check E-R diagram if you've one

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -