• Hello Roi,

    you actually can add constraints to table variables.

    Example:

    DECLARE @MyTabVar TABLE(

    PKCol int NOT NULL PRIMARY KEY CLUSTERED

    ,UniqueCol int NOT NULL UNIQUE

    )

    Best Regards,

    Chris Büttner