Solved

how to view tables and relationships between them in sql server 2005

Posted on 2013-01-14
6
439 Views
Last Modified: 2013-01-26
whats the best free available tool to view the tables and relationships between them in sql server 2005
0
Comment
Question by:mmalik15
6 Comments
 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 38777174
Check Microsoft SQL Server 2005 Express Edition Service.

You can also use SQL Developer from Oracle. Its a free tool provided by Oracle but it has a facility to connect to SQL Server database .
0
 
LVL 21

Accepted Solution

by:
Alpesh Patel earned 500 total points
ID: 38781344
Just create Database Diagram from Node above the tables and you can see relationship in diagram.
0
 
LVL 35

Expert Comment

by:David Todd
ID: 38795975
Hi,

Do you have Visio? That can do the job.

Regards
  David
0
 

Author Closing Comment

by:mmalik15
ID: 38813707
Select
object_name(rkeyid) Parent_Table,
object_name(fkeyid) Child_Table,
object_name(constid) FKey_Name,
c1.name FKey_Col,
c2.name Ref_KeyCol
From
sys.sysforeignkeys s
Inner join sys.syscolumns c1
on ( s.fkeyid = c1.id And s.fkey = c1.colid )
Inner join syscolumns c2
on ( s.rkeyid = c2.id And s.rkey = c2.colid )
Order by Parent_Table,Child_Table
0
 

Author Comment

by:mmalik15
ID: 38813708
i was looking for the above if it helps anybody
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now