# Physcial Data Model.

**URL:** <https://forums.toadworld.com/t/physcial-data-model/1741>\
**Category:** Toad Data Modeler\
**Created:** [July 29, 2008, 2:32am UTC](https://forums.toadworld.com/t/physcial-data-model/1741 "2008-07-29T02:32:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamlesh.singhsnapon](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@kamlesh.singhsnapon](https://forums.toadworld.com/u/kamlesh.singhsnapon)\
**Post date:** [July 29, 2008, 2:32am UTC](https://forums.toadworld.com/t/physcial-data-model/1741/1 "2008-07-29T02:32:15Z")

</div>

HI All,

I’ve created a data model through following movie link  
TDM32\_ReverseEngineering\_HTMLReports.htm.

Well, though, I am able to create a data model and ER Diagramme, but I am not able sure, weather it is OK or not ? I’ve useed the table DDL script to genrate Data Model and ER Diagramme. After generating the physcial data model using report sections. I’ve got few questiosns to ask to you. I would appriciate , if you can go through and comment on those. Please find the attached document.

hare krishna  
Alok

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forums.toadworld.com/u/Guest)\
**Post date:** [July 29, 2008, 2:38am UTC](https://forums.toadworld.com/t/physcial-data-model/1741/2 "2008-07-29T02:38:47Z")

</div>

Hi Alok,

You can test your model if you have Expert mode enabled.Then you can right click on model name in Application view or in Model explorer and from menu left click on Test model.

Or you can just verify your model with CTRL+F9.

BTW,there is no attachment in your post 😉

Tomas  
QA

---

<div class="post-metadata">

**Author:** ![kamlesh.singhsnapon](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@kamlesh.singhsnapon](https://forums.toadworld.com/u/kamlesh.singhsnapon)\
**Post date:** [July 29, 2008, 3:07am UTC](https://forums.toadworld.com/t/physcial-data-model/1741/3 "2008-07-29T03:07:22Z")

</div>

Thanks Tomas, I’ll reattach that one.One more thing TOMAS that if I need to create a only ER Diagramme from Scripts , Can I also do that sepereatly or Is there any way that, If I need to generate ER Diagramme and make it to write into RTF File.

hare krishna

Message was edited by: [kamlesh.singh@snapon.com](mailto:kamlesh.singh@snapon.com)  
[to\_ask\_DDMLNG.doc](https://global.discourse-cdn.com/quest/original/2X/5/5eca526261f41b0328bcd51235e4bf377c09ff12.doc) (37 KB)

---

<div class="post-metadata">

**Author:** ![vladka](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/vladka/32/41_2.png) [@vladka](https://forums.toadworld.com/u/vladka)\
**Post date:** [July 29, 2008, 4:47am UTC](https://forums.toadworld.com/t/physcial-data-model/1741/4 "2008-07-29T04:47:54Z")

</div>

Hello,

Please find attached a reply to your questions in the doc.

> if I need to create a only ER Diagramme from Scripts , Can I also do that sepereatly or Is there any way that, If I need to generate ER Diagramme and make it to write into RTF File.

Well, I'm afraid I don't understand what you mean.  
Anyway, in TDM, you can load ERD from SQL script for Oracle db. Movie:  
[http://modeling.inside.quest.com/entry.jspa?externalID=2062&categoryID=158](http://modeling.inside.quest.com/entry.jspa?externalID=2062&categoryID=158)

Regarding generation of ERD into RTF report, it is not possible. Please generate HTML report for your ERD or feel free to import the ERD into image (File | Export to Graphic File).

If you have any questions, please write me back. Thanks.

Regards,

Vladka  
[to\_ask\_DDMLNG\_REPLY.doc](https://forums.toadworld.com/uploads/default/original/2X/e/ea6f2ca3e4e7e42be162e0ca61a9fe609e73b3de.doc) (37 KB)

---

<div class="post-metadata">

**Author:** ![kamlesh.singhsnapon](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@kamlesh.singhsnapon](https://forums.toadworld.com/u/kamlesh.singhsnapon)\
**Post date:** [July 30, 2008, 12:13am UTC](https://forums.toadworld.com/t/physcial-data-model/1741/5 "2008-07-30T00:13:08Z")

</div>

Thanks a lot Vladka, please find the attached documment for my questions.

hare krishna  
Alok  
[to\_ask\_DDMLNG\_ques.doc](https://global.discourse-cdn.com/quest/original/2X/3/38d4237e20624657382a49372764ee83a9da5e6a.doc) (42.5 KB)

---

<div class="post-metadata">

**Author:** ![vladka](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/vladka/32/41_2.png) [@vladka](https://forums.toadworld.com/u/vladka)\
**Post date:** [July 30, 2008, 1:02am UTC](https://forums.toadworld.com/t/physcial-data-model/1741/6 "2008-07-30T01:02:13Z")

</div>

Hello Alok,

Please see my reply attached.

Regards,

Vladka  
[to\_ask\_DDMLNG\_ques\_REPLY.doc](https://global.discourse-cdn.com/quest/original/2X/6/6158cbba226604c445209eaaab84867d6a8f867a.doc) (42 KB)

---

<div class="post-metadata">

**Author:** ![topwoman](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@topwoman](https://forums.toadworld.com/u/topwoman)\
**Post date:** [April 27, 2009, 4:56am UTC](https://forums.toadworld.com/t/physcial-data-model/1741/7 "2009-04-27T04:56:34Z")

</div>

Vladka,

I read the attachment and your responses with interest.

I am having a problem which might be related. I create an attribute, which I then assign to the default PK key in the Keys tab. So far, so good.

Now, if I mark this attribute as unique, it generates a duplicate entry in the Keys tab, and I cannot delete either key field.

How do I get around this? I want, in the end, to mark all of my PKs as unique.

Annalee

---

<div class="post-metadata">

**Author:** ![vladka](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/vladka/32/41_2.png) [@vladka](https://forums.toadworld.com/u/vladka)\
**Post date:** [April 27, 2009, 8:06am UTC](https://forums.toadworld.com/t/physcial-data-model/1741/8 "2009-04-27T08:06:40Z")

</div>

Hello Annalee,

In the Entity Properties form, Keys tab, there is a PK by default. It is not possible to delete this PK, however by default it is empty. If you already added an attribute to this PK, you need to edit the PK and in the Key Properties dialog | Attributes tab, remove the attribute from the box Selected – use the \< arrow.

Thanks for the code. Here are possible solutions:

1. If you want to have a PK only with the attribute allocationld, add the PK there and do NOT select the Unique checkbox in the property dialog of this attribute.
2. If you want to have only unique index with attribute allocationld instead of the PK, you have the following possibilities:  
a) Create a new AK on the Keys tab and add the allocationld attribute to this newly created key. OR  
b) Edit the attribute allocationld and on tab General of the Attribute Property dialog select the Unique checkbox. -\> This step is the same as a) where the same was done automatically. OR  
c) In the Entity Properties form | Indexes tab create a new index. Edit it and:

- on tab General select the Unique checkbox and
- on tab Items, select the allocationld attribute.

All the three solutions will result into the same – in MySQL a unique index will be created.

Later you can select a linking method for the relationship:

- Through a Key (Primary or Alternate key) of parent entity
- Through Unique Index of parent entity

How to Set Up Linking Method

1. Double-click the selected relationship.
2. Click the Foreign Keys tab.
3. From the Parent Key box, select the appropriate linking method.

If you have more questions, please write me back. Thanks.

Regards,

Vladka + TDM team

Message was edited by: vladka
