We have a custom field that is 255 characters. I need to adjust it to be 2000 characters.
I know where to do it in Custom Field Maintenance and I know how to regenerate the database after.
However I’ve been burned by this screen before when changing field types from say string to boolean, the application threw all kinds of errors on screens with the field in question.
If I just want to adjust the varchar size can I do that on that screen and regenerate?
Or do I have to delete the field, regenerate, remake the field, and then regenerate? (I’d rather not do this if I don’t have to, it’s kind of a pain.)
I found that I was unable to change the size of the field and regenerate. There was an error when running generate. This might be due to the fact that there is already data in the field.
Yes it appears to be the constraint error. How do you remove the constraint?
The object 'DF_PartPlant_UD_GPMReviewComments_c' is dependent on column 'GPMReviewComments_c'.
ALTER TABLE ALTER COLUMN GPMReviewComments_c failed because one or more objects access this column.
ALTER TABLE [Erp].[PartPlant_UD] ALTER COLUMN [GPMReviewComments_c] nvarchar(max) NOT NULL
EXEC Ice.DropColumn N'Erp', N'PartPlant_UD', N'GPMReviewComments_c', 1
ALTER TABLE [Erp].[PartPlant_UD] ADD CONSTRAINT [DF_PartPlant_UD_GPMReviewComments_c] DEFAULT '' FOR [GPMReviewComments_c]