Re: tools for analysis relations
- From: "DickChristoph" <dchristo101@xxxxxxxxx>
- Date: Mon, 27 Feb 2006 18:32:15 GMT
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.
--
-*** Christoph
<stemond79@xxxxxxxxx> wrote in message
news:1141032571.895476.126480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Are there tools for SQL2k database that take a database return all
relations of tables.
thanks.
Stefano.
.
- References:
- tools for analysis relations
- From: stemond79
- tools for analysis relations
- Prev by Date: Re: Script SQL 2005 database to individual files?
- Next by Date: Re: Automating record selection parameters
- Previous by thread: tools for analysis relations
- Next by thread: workgroup information file does not exist
- Index(es):