Ummmm... DEFAULTs are really CONSTRAINTs... you can add a constraint that is a default. BOL has an example as follows...CREATE TABLE doc_exz ( column_a INT, column_b INT) ;GOINSERT INTO doc_exz (column_a)VALUES ( 7 ) ;GOALTER TABLE doc_exzADD CONSTRAINT col_b_defDEFAULT 50 FOR column_b ;GOINSERT INTO doc_exz (column_a)VALUES ( 10 ) ;GOSELECT * FROM doc_exz ;GODROP TABLE doc_exz ;GO
Here's the online link for the above...[url]http://msdn2.microsoft.com/en-us/library/ms190273.aspx[/url]So far as the composite key thing goes... I strongly recommend that you lookup the above link as it has everything you need for your question. All you have to do is use more than 1 column name in the parenthesis... like this...ALTER TABLE yourtableADD CONSTRAINT PK_yourtable_columnnamesPRIMARY KEY CLUSTERED (list of column names)
--Jeff Moden