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

whats the best free available tool to view the tables and relationships between them in sql server 2005
mmalik15Asked:
Who is Participating?
 
Alpesh PatelConnect With a Mentor Assistant ConsultantCommented:
Just create Database Diagram from Node above the tables and you can see relationship in diagram.
0
 
Swadhin RaySenior Technical Engineer Commented:
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
 
David ToddSenior DBACommented:
Hi,

Do you have Visio? That can do the job.

Regards
  David
0
 
mmalik15Author Commented:
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
 
mmalik15Author Commented:
i was looking for the above if it helps anybody
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.