Cannot Drop Constraint because it enforces full-text key...

Forum for users of SQL Compare schema synchronization utility

Cannot Drop Constraint because it enforces full-text key...

Postby dmslabaugh » Fri May 09, 2014 9:14 pm

I am receiving the following error when running the Automation Pack. When generating the script with sql compare, everything deploys. It is only with the automation pack that I have the problem.

Cannot drop index
'PK_table_product' because it enforces the full-text key for table or indexed
view 'table_product'. Could not drop constraint.

Here is the command:

SQLCompare.exe /include="Identical" /include="StaticData" /scripts1="C:\\Users\\svc-tfsbuilder\\AppData\\Local\\Temp\\ugxnwl2w.ln5\\db\\state" /server2="dc1wdmtodb01\\tog_ci" /database2="tog" /synchronize /include="staticdata" /LogLevel="Verbose" /Out="d:\\Builds\\3\\OnePPSource\\RedGateTest\\bin\\ppoe_sqlCI.log" /ScriptFile="d:\\Builds\\3\\OnePPSource\\RedGateTest\\bin\\ppoe_sqlCI.sql" /Report="d:\\Builds\\3\\OnePPSource\\RedGateTest\\bin\\ppoe_sqlCI.html" /ReportType="Interactive" /force /filter="mto\\schema\\filter.scpf" /o="IgnoreFillFactor,IgnoreWhiteSpace,IgnoreWithElementOrder,IgnoreExtendedProperties,IgnorePermissions,IgnoreStatistics,IgnoreSystemNamedConstraintNames,IgnoreUsers,IgnoreUsersPermissionsAndRoleMemberships,IgnoreFullTextIndexing"

Any assistance would be appreciated.
Posts: 1
Joined: Fri May 09, 2014 9:07 pm

Postby james.billings » Tue May 13, 2014 5:25 pm

The automation pack is still running Compare, so in theory the end result should be the same.

I'd probably begin by verifying that when you tested with Compare you used exactly the same source/target. In addition, check that you were using the same options as the automation command line is passing, and that you also included the same filter file (you'll need to load the filter into the Compare GUI)

The actual error you got looks like we were trying to drop something that SQL Server didn't allow as it was in use, so this may indicate a missing dependency when it's run through the automation side of things
Posts: 1121
Joined: Wed Jun 16, 2010 10:10 am
Location: Red Gate

Return to SQL Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests