# Schema Compare doesn't generate script for table diffs

**URL:** <https://forums.toadworld.com/t/schema-compare-doesnt-generate-script-for-table-diffs/46980>\
**Category:** Toad for Oracle - Beta\
**Created:** [July 8, 2019, 4:58pm UTC](https://forums.toadworld.com/t/schema-compare-doesnt-generate-script-for-table-diffs/46980 "2019-07-08T16:58:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjesse](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/rjesse/32/156_2.png) [@rjesse](https://forums.toadworld.com/u/rjesse)\
**Post date:** [July 8, 2019, 4:58pm UTC](https://forums.toadworld.com/t/schema-compare-doesnt-generate-script-for-table-diffs/46980/1 "2019-07-08T16:58:28Z")

</div>

Howdy,

In 13.2.0.166, I have a source schema consisting of this table:

`CREATE TABLE toad_compare_test (col1 NUMBER, col2 NUMBER);`

In another DB, I have a target schema with this table:

`CREATE TABLE toad_compare_test (col1 NUMBER);`

In Schema Compare, it finds the difference, and allows me to preview that difference, but the Sync Script tab is blank (except for comments).

Strangely, this is also the same for me in 13.1 GA (can't get the exact version ATM).

Thoughts? I use this at least monthly, and I don't recall having this issue before, but scanning back in the forums, I've forgotten about more than 1 issue I've posted.... 🤔

Thanks!  
Rich

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [July 15, 2019, 1:28pm UTC](https://forums.toadworld.com/t/schema-compare-doesnt-generate-script-for-table-diffs/46980/2 "2019-07-15T13:28:58Z")

</div>

Hi Rich,

Sorry for the delay...I was on vacation. I just tested this and it's working OK for me. At first I suspected something to do with the "Add/Reorder columns using DBMS\_REDEFINITION" but it works for me with that option either checked or unchecked.

Does your "real" table have any other differences?

And sorry to ask a dumb question, but....you didn't uncheck the table or column in the "difference details" tree, did you? That would cause it to not appear in the sync script.

-John

---

<div class="post-metadata">

**Author:** ![rjesse](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/rjesse/32/156_2.png) [@rjesse](https://forums.toadworld.com/u/rjesse)\
**Post date:** [July 16, 2019, 1:22pm UTC](https://forums.toadworld.com/t/schema-compare-doesnt-generate-script-for-table-diffs/46980/3 "2019-07-16T13:22:49Z")

</div>

Hey John,

Welcome back!

Once I edited my CONFIG.SYS to move my mouse driver to himem and load EMM386.EXE and rebooted, it works!

OK, not really. I have no idea why it works now or what I did, other than a non-related reboot for Windows patching. I can't duplicate it anymore, and since my Win7™ laptop is being replaced with something Win10ish, one can only deduce that there is code in Toad to determine if you're on vacation and to break if that condition is true.

Thanks much! Hope it was a fun, relaxing, and refreshing time away from us troublemakers! 🙂

Rich

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [July 16, 2019, 1:30pm UTC](https://forums.toadworld.com/t/schema-compare-doesnt-generate-script-for-table-diffs/46980/4 "2019-07-16T13:30:09Z")

</div>

Sounds like job security to me! Glad it's working again.

---

<div class="post-metadata">

**Author:** ![urban.tamas](https://avatars.discourse-cdn.com/v4/letter/u/46a35a/32.png) [@urban.tamas](https://forums.toadworld.com/u/urban.tamas)\
**Post date:** [August 26, 2019, 9:27am UTC](https://forums.toadworld.com/t/schema-compare-doesnt-generate-script-for-table-diffs/46980/5 "2019-08-26T09:27:53Z")

</div>

I've the same problem in the latest beta. I added 3 more columns after the last column of a table, and checked Tables|Add/Reorder columns with DBMS\_REDEFINITON option. Toad finds the differences, but there is no individual ALTER TABLE ADD COLUMN commands in sync script , just a dbms\_redefiniton script for the whole table. I don't think Toad should generate this type of script in this situation.

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [August 26, 2019, 11:59am UTC](https://forums.toadworld.com/t/schema-compare-doesnt-generate-script-for-table-diffs/46980/6 "2019-08-26T11:59:41Z")

</div>

Hi Tamas,

That sounds different than Rich's problem, but you are right - ALTER TABLE ADD COLUMN is what Toad should do in this situation. As a workaround until I fix it, uncheck the dbms\_redef option.

Update 12/9/2019: Fixed in [Toad for Oracle 13.3 Beta](https://forums.toadworld.com/t/toad-for-oracle-13-3-beta/41283)

-John
