Open jasonhorner opened 6 months ago
Serverless SQL pools don't support null/not null in the external table column definition, so we need to fix in DacFx:
SSMS scripting it out with the null included is also not correct, that would throw an error that NULL is not allowed for external table columns.
Steps to Reproduce:
4 now try to recreate this table specifying NOT NULL
this error occurs Msg 15872, Level 16, State 1, Line 13 NOT NULL is not allowed for external table columns.
it is also worth noting that SMSS 19.3 will correctly script this out:
However ADS Schema compare scripts it out as NOT NULL which it successfully builds in database project / sqlpackage however the resulting script fails when trying to deploy.
to be honest I'm not entirely sure where the bug is here. There seems to be a disagreement between SSMS and DACFX as to what is allowed. In any case this isn't desired or expected behavior.
I would assert we should be able to define a column as not null in the table definition in serverlesss pool or if not the behavior across all tools should be consistent.
(DacFx/SqlPackage/SSMS/Azure Data Studio)