?
Solved

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

Posted on 2013-01-14
6
Medium Priority
?
493 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Suggested Courses

752 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