primary key

By dbyakes ·
can we change primary key in sql server? if can how?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -


by Shellbot In reply to primary key

how do you want to change it?
do you want to delete your existing one?

if so:

ALTER TABLE tablename
DROP CONSTRAINT primarykeyname

make sure you've nothing dependant on this before you do it though..

or are looking to modify it?

have a read of CONSTRAINT
or even have a look at this:

Back to Networks Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums