I have one table in SQL Server on premise that I wanted to migrate to Azure Dedicated SQL Pool.
CREATE TABLE test1
(
col1 INT PRIMARY KEY,
col2 INT NULL
);
CREATE TABLE test2_dedicated_pool
(
col1 INT NOT NULL,
col2 INT NULL
)
WITH
(
DISTRIBUTION = HASH(col1),
CLUSTERED COLUMNSTORE INDEX
);
I setup a pipeline with a copy task to do the simple copy (with staging) but it fails with the following error:
SQL DW Copy Command operation failed with the error 'Cannot insert the value NULL into column 'col2', table 'Distribution_57.dbo.Table_someguid_57', column does not allow nulls.
Anyone know what this error is?