Thanks
This error message is a bit odd
And this error message is a bit odd - not on the PK cols are nullable.
declare @tab table
(
UniqueIdentifier varchar(28) NOT NULL,
AsFrom datetime not NULL,
AsTo datetime not NULL,
ISINCode varchar(12) NULL
primary key (UniqueIdentifier, AsTo, ValidTo)
)
>[Error] Script lines: 28-38 ------------------------
Nulls not allowed in a primary key column.
Msg: 7325, Level: 15, State: 1
Server: LN_DELTA_Q2_SQL, Line: 1 _
.