Given the following table variable...DECLARE @tbl TABLE ( aID int, bID int )
...is it possible to specify in the declaration a unique constraint across both columns? I need to prevent duplicate rows of the same value being inserted, so for example:INSERT INTO @tbl (aID, bID) VALUES (15, 20)INSERT INTO @tbl (aID, bID) VALUES (30, 40)INSERT INTO @tbl (aID, bID) VALUES (65, 99)INSERT INTO @tbl (aID, bID) VALUES (30, 40) -- fails here because these two values already exist from the second insert