--- title: "1750 Upgading SecureDoc Enterprise Server Database generates :Unable to recreate DEFAULT constraints!" slug: "1750" updated: 2026-02-19T20:41:35Z published: 2026-02-19T20:41:35Z canonical: "documentation.winmagic.com/1750" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.winmagic.com/llms.txt > Use this file to discover all available pages before exploring further. # 1750 Upgading SecureDoc Enterprise Server Database generates :Unable to recreate DEFAULT constraints! **Issue:** When SecureDoc Enterprise Console is making connection to SQL database and attempting to update SQL Database following error\warning is generated we are unable to upgrade database . ![](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/image(150).png) **Product version affected:** 7.1sr4 , 7.1sr4 HF3 **Environment (OS/hardware/software):** Server 2008/2013 SQL 2008/2012 **Work Around:** We will need to apply a SQL script to remove the old Constraint DECLARE @NeedsFolderCalculationCon NVARCHAR(MAX) = NULL; select @NeedsFolderCalculationCon = d.name from sys.all_columns c join sys.tables t on t.object_id = c.object_id join sys.schemas s on s.schema_id = t.schema_id join sys.default_constraints d on c.default_object_id = d.object_id where t.name = 'Admins' and c.name = 'NeedsFolderCalculation' IF @NeedsFolderCalculationCon IS NOT NULL exec ('alter table Admins DROP CONSTRAINT ' + @NeedsFolderCalculationCon); SQL Script is also attached in KB DefaultConstaint.sql Ensure that correct Database is Selected ![](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1750-image-wtv7j0q1.png) **Fix Version** This will be added in 7.1sr5 SD-20801