# Toad SS 5.5 - Not finding all the constraints on a table thus not generating ALTER or Creation Script correctly \[1 Attachment\]

**URL:** <https://forums.toadworld.com/t/toad-ss-5-5-not-finding-all-the-constraints-on-a-table-thus-not-generating-alter-or-creation-script-correctly-1-attachment/15402>\
**Category:** Toad for SQL Server\
**Created:** [October 19, 2011, 9:09am UTC](https://forums.toadworld.com/t/toad-ss-5-5-not-finding-all-the-constraints-on-a-table-thus-not-generating-alter-or-creation-script-correctly-1-attachment/15402 "2011-10-19T09:09:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hfreeman](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/hfreeman/32/54_2.png) [@hfreeman](https://forums.toadworld.com/u/hfreeman)\
**Post date:** [October 19, 2011, 9:09am UTC](https://forums.toadworld.com/t/toad-ss-5-5-not-finding-all-the-constraints-on-a-table-thus-not-generating-alter-or-creation-script-correctly-1-attachment/15402/1 "2011-10-19T09:09:03Z")

</div>

[Attachment(s) from Hank\_Freeman(msn) included below]

When trying to generate an Alter statement on a table, it was noticed that  
Toad-SS did not find or manage all the constraints. Therefore when it want to  
re-create the constraints it came up way short.

Objective: Change two fields from char to varchar in App.Landlordagreements

Problem: Completely different code generated by SSMS and Toad-SS to make this  
ALTER change.

Area of concern: Toad-SS not finding all the needed constraints on target table  
thus NOT generating all the needed drops and adds

Conclusion: Alter on Toad-SS 5.5 doesn’t generate the correct information  
about a table so as to make a proper Alter on a table. Making this functionality  
in Toad-SS unusable .

This is especially poignant one looks at the two Table view details between SSMS  
and Toad-SS 5.5

See attached document for full details.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

[hfreeman@msn.com](mailto:hfreeman@msn.com)

678.414.0090 my cell Primary

Hank.Freeman50 (Skype)

Attachment(s) from Hank\_Freeman(msn)

1 of 1 File(s)

TOAD-SS\_Alter\_Missing-Contraints.docx

![image001.gif](https://global.discourse-cdn.com/quest/original/1X/c419a4884cb60937895dfef6b4b6862a4a679db6.gif)

![image002.jpeg](https://global.discourse-cdn.com/quest/original/1X/ca60ef1b55129d126c1774d4371b31a0a5bd7429.jpeg)
