473,394 Members | 1,750 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,394 software developers and data experts.

tools for analysis relations

Are there tools for SQL2k database that take a database return all
relations of tables.

thanks.
Stefano.

Feb 27 '06 #1
4 1257
Hi Stefano

You can use the Enterprise Manager and generate a new diagram, Add all the
tables in the database and it will show the relationships.

Alternatively you can Script Database objects from the Enterprise. Manager.

Select All tables in the Tables node of the database, right click and choose
"All Tasks", "Generate SQL Script"

Include the option "Script Primary Keys, Foreign Keys, defaults and check
constraints" and it will include a couple of lines such as :

ALTER TABLE [dbo].[ShippingQueue] ADD
FOREIGN KEY
(
[BoxID]
) REFERENCES [dbo].[Boxes] (
[BoxID]
)

Which in this case indicates that in the table ShippingQueue, the column
BoxID references the table Boxes, Column BoxID as a foreign key.

--
-Dick Christoph

<st*******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
Are there tools for SQL2k database that take a database return all
relations of tables.

thanks.
Stefano.

Feb 27 '06 #2
Hi DickChistoph

if i design a datagram i don't see the relations between tables. WHy?

DickChristoph ha scritto:
Hi Stefano

You can use the Enterprise Manager and generate a new diagram, Add all the
tables in the database and it will show the relationships.

Alternatively you can Script Database objects from the Enterprise. Manager.

Select All tables in the Tables node of the database, right click and choose
"All Tasks", "Generate SQL Script"

Include the option "Script Primary Keys, Foreign Keys, defaults and check
constraints" and it will include a couple of lines such as :

ALTER TABLE [dbo].[ShippingQueue] ADD
FOREIGN KEY
(
[BoxID]
) REFERENCES [dbo].[Boxes] (
[BoxID]
)

Which in this case indicates that in the table ShippingQueue, the column
BoxID references the table Boxes, Column BoxID as a foreign key.

--
-Dick Christoph

<st*******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
Are there tools for SQL2k database that take a database return all
relations of tables.

thanks.
Stefano.


Mar 1 '06 #3
You need to "Add Related Tables". Tables are only related if you
explicitly create relationships.

Mar 1 '06 #4
Hi Stefano,

Are you sure the tables are truly related?

For example if I script my ShippingQueue Table as Create in the QA it tells
me that ShippingQueue.BoxID References Boxes.BoxID as shown below.

CREATE TABLE [ShippingQueue] (
[Ord] [int] IDENTITY (1, 1) NOT NULL ,
[BoxID] [int] NOT NULL ,
PRIMARY KEY CLUSTERED
(
[Ord]
) ON [PRIMARY] ,
FOREIGN KEY
(
[BoxID]
) REFERENCES [Boxes] (
[BoxID]
)
) ON [PRIMARY]
GO

--
-Dick Christoph
<st******@libero.it> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Hi DickChistoph

if i design a datagram i don't see the relations between tables. WHy?

DickChristoph ha scritto:
Hi Stefano

You can use the Enterprise Manager and generate a new diagram, Add all
the
tables in the database and it will show the relationships.

Alternatively you can Script Database objects from the Enterprise.
Manager.

Select All tables in the Tables node of the database, right click and
choose
"All Tasks", "Generate SQL Script"

Include the option "Script Primary Keys, Foreign Keys, defaults and check
constraints" and it will include a couple of lines such as :

ALTER TABLE [dbo].[ShippingQueue] ADD
FOREIGN KEY
(
[BoxID]
) REFERENCES [dbo].[Boxes] (
[BoxID]
)

Which in this case indicates that in the table ShippingQueue, the column
BoxID references the table Boxes, Column BoxID as a foreign key.

--
-Dick Christoph

<st*******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
> Are there tools for SQL2k database that take a database return all
> relations of tables.
>
> thanks.
> Stefano.
>

Mar 1 '06 #5

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

Similar topics

72
by: Wim Vanhoof | last post by:
Dear all, I would like to announce that the department of computer science of the University of Namur, Belgium, is seeking a post-doctoral researcher for a one-year fellowship in the area of ...
2
by: Lee Mundie | last post by:
Hi, I'm nearing the end of my site development (currently ASP and Access moving to SQL) and am looking for site testing tools... In particular looking for load testing and concurrent connection...
0
by: Noah Coad [MS] | last post by:
Join the Visual Studio Team System (VSTS)'s Enterprise Developer and Test (eDT) Tools team at Microsoft in an online MSDN Chats! We will be focusing on the tools: Static Code Analysis (FxCop,...
2
by: Derek | last post by:
This isn't exactly a language question, but I'm curious if any of the veteran programmers out there could recommend a static analysis tool for C++. Specifically, I'm looking for something that...
9
by: Xueilonox | last post by:
I'm working on a project that has a website with some streaming video. We're tracking clicks on the custom video player (Windows Media Player) to a mysql database (requirement). Is there a...
1
by: vipindeep | last post by:
Dear reader, Are there any widely used dynamic analysis tools which are used for detecting errors in programming, for example null dereferences, deadlocks, etc.. Some of the tools which I...
3
by: Thomas Nelson | last post by:
Sorry if this is a FAQ, but I couldn't find a good summary through google. What kinds of statistical analysis tools exist in python? I really just need t-tests, chi-squared test, and other such...
0
by: L'eau Prosper Research | last post by:
Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases new TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set. L'eau Prosper Market...
0
by: L'eau Prosper Research | last post by:
NEW TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set By L'eau Prosper Research Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.