Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Sun Foster
Aged Yak Warrior
515 Posts |
Posted - 2006-10-17 : 09:33:27
|
| I try to add primary key in a table but got error:there is already an object named 'pk_mytable'How to fix it? |
|
|
Sun Foster
Aged Yak Warrior
515 Posts |
Posted - 2006-10-17 : 09:36:41
|
| If I delete this table, problem will be solved. Is there another way without drop this table and add primary key? |
 |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2006-10-17 : 10:47:10
|
| [code]ALTER TABLE mytableDROP CONSTRAINT pk_mytable[/code]Harsh AthalyeIndia."Nothing is Impossible" |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-10-17 : 11:22:28
|
| Do you want to make more than one column as Primary key?Read about Composite primary keyMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|