Solved

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

Posted on 2013-01-14
6
459 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
2016 SQL Licensing 7 41
Query Syntax 17 34
How do uses indexes to maximize MySQL Searches 14 26
optimize stored procedure 6 25
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

770 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