how to add primary key to table in sql sewrver code example Example: add primary key to existing table sql alter table Persion add primary key (persionId,Pname,PMID)