jfokas
Programmer
- Apr 28, 2002
- 42
- 0
- 0
I need to drop on the primary key on a table within a script but keep getting an error. The syntax should be straight-forward:
ALTER TABLE accession_2 DROP PRIMARY KEY
Yet, I get this error:
Server: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'PRIMARY'
This is a SQL Server 2000 database. Can anyone tell me what I'm missing. I'm sure the answer is rediculously simply but I'm not seeing it.
ALTER TABLE accession_2 DROP PRIMARY KEY
Yet, I get this error:
Server: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'PRIMARY'
This is a SQL Server 2000 database. Can anyone tell me what I'm missing. I'm sure the answer is rediculously simply but I'm not seeing it.