How to create Composite Unique Constraint in SQL Server 2005
问题 Preferably I would like to know how to do it using the SQL Server Management Studio interface but that isn't completely necessary. If you simply have a script to add one after a table is made that would be fine. 回答1: In SQL Server Management Studio goto the Object Explorer pick your table and open its designer (can't remember what it was called in 2005 - Modify Table or something?) in the table designer, pick the "Manage Indexes and Keys" icons from the toolbar (the table with the little key)