An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
Hi Gayatri K ,
Welcome to Microsoft Q&A platform and thanks for posting your query here.
I understand that you are facing an error while deploying a Synapse DB using dacpac.
The error message indicates that an expression cannot be used with a default constraint.
- To resolve this error , could you please try to modify the create table script to use a constant value for the default constraint instead of an expression. For example, instead of using
MASKED WITH (FUNCTION = 'default()') NULL, please try to useMASKED WITH (FUNCTION = 'default(0)') NULLto set the default value to 0. - Additionally, please check if the version of the SQL Server Data Tools (SSDT) you are using is compatible with the version of the SQL Server they are deploying to. If the versions are not compatible, it can cause deployment issues.
- Also, please ensure that all the necessary permissions and access rights to deploy the Synapse DB using dacpac are in place.
- Deploying Synapse SQL Serverless objects across environments using SSDT explains how to deploy a Synapse DB using dacpac .
I hope this helps! Please let us know how it goes. Thankyou