Thanks for the question and using MS Q&A platform.
Based on the error message you provided, it seems that the issue is with the table you created. The error message indicates that the column 'col' does not allow null values, which means that you cannot insert a null value into that column.
To resolve this issue, you need to ensure that the column 'col' allows null values. You can modify the table schema to allow null values for this column by running the following command:
ALTER TABLE [Sh].[Dim] ALTER COLUMN [col] nvarchar NULL;
This command will modify the table schema to allow null values for the column 'col'. Once you have made this change, you should be able to insert null values into this column without any issues.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.