473,385 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to have the DB diagram


Hi all the SQL wizards there!!!
I have a Data base consisting of 675 tables. There isn't any data base
diagram created and not even any data is present in the system tables
to identify the realtionship betweeen the tables.i am planning to have
the realtionship created betweeen all the tables for easier access. I
couldn't figure out how to do that. Can anyone help me to relate the
tables !!!!!!
The Database in is in SQL server 2000.

Nov 10 '05 #1
1 1631
Foreign key constraints are the method used to enforce relationships
between tables. You can create a foreign key like this:

ALTER TABLE table1
ADD CONSTRAINT fk_table1_table2
FOREIGN KEY (col1) REFERENCES table2 (col1) ;

It is also possible to do it through Enterprise Manager although that's
not something you should ever do on a live database - only use EM on a
development system.

For a database with hundreds of tables you will probably want to use a
ER modelling tool to help with the creation of keys. Visio Enterprise
Architect for example.

--
David Portas
SQL Server MVP
--

Nov 10 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tim Smith | last post by:
Dear All, Silly question, but I am having trouble understanding the diagram on the inside back cover entitled "Design Pattern Relationships." It shows the relationships between all of the...
1
by: marane moll | last post by:
Hello My Access Diagram wizard is buggy and reinstallation of Access (2000) doesn't help. I guess it is buggy because of a not registered ActiveX Control. But I don't know which Control the...
5
by: A.M | last post by:
Hi, I am looking for a Diagram that visually shows how System.Web.HttpApplication class contains System.Web.UI.Page classes and how they interact together. I am trying to underestand the class...
4
by: thoducng | last post by:
Hi all: I want to create a class diagram, similar to MFC class diagram published long ago. I don't need a UML model, all I need is a class named and inheritance relationship. My classes are in...
1
by: Rudi | last post by:
Hi Guys and gals, I want to generate a code diagram from a c# application, but when i do the reverse engineer thing it just creates the classes from the current projec ready for you to create...
0
by: pranesh.nayak | last post by:
Currently am working on project which has graphical editor for circuit diagram which involve validation of circuit and logic flow in circuit diagram.(process diagram from left to right). please...
3
by: Lee Crabtree | last post by:
Are there any tools that will take an existing assembly and generate a class hierarchy from it? It seems like the kind of thing that would be possible with reflection, but I don't know enough...
2
by: José Joye | last post by:
Hello I'm currently looking for a diagram that shows the event we can register with asp.net. I'm currently a bit lost with when they are fight and which one are our disposal..... Thanks,...
13
by: Doug | last post by:
Hi all, A workmate was recently bitching to me about an RFC. (Apologies - the RFC number eludes me at present (it's related to the DIAMETER protocol, that's all I can remember) but I will try...
0
by: viepia | last post by:
Hi, My project writes records to a new SQL Server 2005 database with currently 18 tables. When I change the Database Diagram for my database I save the copy the list of changed tables to a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.