You can drag any existing table from Tables window (Database > View >Tables) on to the diagram to make a second (or third, ..) graphical instance of the same
table. So, if you want to connect table A on page one with table B on page 2, you can either drag B onto page 1 to connect or A onto page 2 to connect.
Also note that creating a new graphical table instance will result in displaying all relationships that are already defined with other tables on the page. To simply hide
some of the relationships, you can just remove the line without deleting it from the underlying model.
--
Chang Oh
Visual Studio Enterprise Frameworks and Tools
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: Karsten Farrell <
[email protected]>
Newsgroups: microsoft.public.visio.database.modeling
Subject: Re: How to connect tables when they are in different pages of the data model document?
Message-ID: <
[email protected]>
References: <
[email protected]> <
[email protected]> <abeafe5d.0307300808.45e57d15
@posting.google.com>
X-Newsreader: MicroPlanet Gravity v2.60
Lines: 82
NNTP-Posting-Host: 67.117.210.172
X-Complaints-To: (e-mail address removed)
X-Trace: newssvr13.news.prodigy.com 1059595323 ST000 67.117.210.172 (Wed, 30 Jul 2003 16:02:03 EDT)
NNTP-Posting-Date: Wed, 30 Jul 2003 16:02:03 EDT
Organization: SBC
http://yahoo.sbc.com
X-UserInfo1: [[PA@SVDSZYMR]PXKROD]_\@VR]^@B@MCPWZKB]MPXHJUZ]CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX
[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN
Date: Wed, 30 Jul 2003 20:02:03 GMT
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!194.168.4.91.MISMATCH!newspeer1-
gui.server.ntli.net!ntli.net!in.100proofnews.com!in.100proofnews.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!
postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!34d3422d!not-for-mail
Xref: cpmsftngxa06.phx.gbl microsoft.public.visio.database.modeling:2973
X-Tomcat-NG: microsoft.public.visio.database.modeling
Hi Ricardo, thanks for writing this:
FYI: I am using Visio 2000.
I already had a new page. On this new page I have tables that have
foreign keys that point back to a table defined on the first page. I
need to keep this table on the first page since there are other tables
on that first page that also have foreign keys to this same table.
I tried to drag the parent table from the first page to the second
page hoping that visio would "make a copy" (not move) of it on my
second page. However, that didn't work. It just didn't allow me to do
it.
Any more suggestions/ideas?
Since you don't have the Enterprise Architect version, you must be using
Visio only to draw a diagram of your database (which is how I use it, by
the way, and worth taking the time to draw, even if I can't generate the
db from it). You have at least a couple of choices:
1. You can create a "dummy" entity of the parent or child table off the
page, in the non-printing area. You only need put the PK and/or FK in this
"dummy" table. You can then draw the relationship between the visible
table and the invisible one. The problem is that your relationship lines
will print with the line going off the edge of the page into never-never
land.
2. You can create your "dummy" table on a non-displayed, non-printing
fantom layer and connect your relationship lines as above. Then on the
displayed layer, put an off-page connector that's lined up - by eye - with
the line that connects to the fantom.
3. What I do is list all of the off-page tables in a shape from the
Callouts template called "Full bracket text." That's just my convention
for my drawings ... you can use shape you wish. The callout lists the page
number and table name of the parent or child. Too bad I can't make a nice
graphic picture to post here, but it ends up looking something like:
Parent
+-------+ +-----
| PK | | Pg Table
+-------+--->| --- -------
| ColA | | 4 ChildX
| ColB | | 2 ChildY
+-------+ +-----
If your newsreader doesn't display the above in a fixed-width font like
Courier, then you'll have a real messy looking diagram.
PS - Since I don't need to worry about generating a db from my Visio
diagram (it's just a pretty picture), I take other shortcuts.
All my datatypes are the default (so I don't have to worry whether it's a
number or a string value). I do check/uncheck the PK checkbox so PKs are
shown above the columns. I don't worry about the required checkbox (it
doesn't show on the diagram). I don't use "relationship" shapes (I draw
simple dynamic connectors) so I don't have to worry about matching PK/FK
columns.
But these shortcuts are mostly because I'm happy just to have a pretty
drawing ... and that challenge is enuf for me. I'm not saying it's the
best approach. YMMV.