Constraints created as NO CHECK are getting created as CHECK after publishing the dacpac
I publish my DACPAC solution into a database. What I am seeing is constraints that were dropped and re-created in the Publish process are being created as WITH CHECK constraints. Searching about the issue, I found that there was a SqlPackage.exe property called ScriptValidationForNewConstraints which is responsible for making all the new constraints into CHECK. So I tried setting that property to False and published again. Now the issue is that all the constraints are created as WITH NOCHECK. Any help on how can I preserve the CHECK or NOCHECK state of these constraints as defined in the SQL p
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.