Use Drop and Create Instead Of Alter Option
Gregory_Mellis
Posts: 2 New member
in SQL Compare
I am running the latest Update version of SQL Compare and I don't think this is working correctly.
I have 2 tables where I changed several Column Length's. The Resulting Update Script contains statements like this ALTER TABLE [dbo].[Customer] ALTER COLUMN [ShipToName] [nvarchar] (30) NOT NULL
I was expecting to get an Drop and Create Script, where I can then modify the Data Copy process to peform LEFT Truncation.
I have 2 tables where I changed several Column Length's. The Resulting Update Script contains statements like this ALTER TABLE [dbo].[Customer] ALTER COLUMN [ShipToName] [nvarchar] (30) NOT NULL
I was expecting to get an Drop and Create Script, where I can then modify the Data Copy process to peform LEFT Truncation.
Tagged:
Best Answer
-
Jessica R Posts: 1,319 Rose Gold 4Hi and thanks for your post!
The "use drop and create instead of alter" option actually only applies to the following object types (as described here):
Views
Stored Procedures
Functions
Extended Properties
DDL Triggers
DML Triggers
If you'd like to see this option to apply to tables as well, can you please vote on the request here: https://redgate.uservoice.com/forums/141379-sql-compare/suggestions/3554275-include-tables-in-use-drop-and-create-instead-of
Thank you and sorry for any confusion on this!
Answers