# Bug? Create DDL Option - Deselecting FK still produces SQL with FK

**URL:** <https://forums.toadworld.com/t/bug-create-ddl-option-deselecting-fk-still-produces-sql-with-fk/40723>\
**Category:** Toad for SQL Server\
**Created:** [March 15, 2018, 12:47pm UTC](https://forums.toadworld.com/t/bug-create-ddl-option-deselecting-fk-still-produces-sql-with-fk/40723 "2018-03-15T12:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrashantGijare](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@PrashantGijare](https://forums.toadworld.com/u/PrashantGijare)\
**Post date:** [March 15, 2018, 12:47pm UTC](https://forums.toadworld.com/t/bug-create-ddl-option-deselecting-fk-still-produces-sql-with-fk/40723/1 "2018-03-15T12:47:45Z")

</div>

I’ve tried many times without luck. I deselect FK in the script creation and it still creates FK at the bottom of the script. I’ve to manually go and remove that as I don’t want FK in the creation script. I create FULL DB script for deployment on test servers so I want script w/o FK to start with. Later I want ONLY FK script that I enable after data load.

Please help as because of this possible glitch I cannot automate this task.

Regards,

Prashant
