Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropping a PK

Status
Not open for further replies.

jeffmoore64

Programmer
Mar 23, 2005
207
US
Hi,
I'm trying to drop my PK. Here is the code I'm using:

alter table japan_rep.dbo.whm09_2 drop constraint PK_whm09_2


There are only 56 columns in the table and 2 fields. The table is not being used. I have let the above sql run for 10 minutes without completion.
What am I doing wrong here?

TIA
 
That syntax should work. How many records in the table. It could just be taking awhile because of the number of columns.

- Paul
10qkyfp.gif

- If at first you don't succeed, find out if the loser gets anything.
 
Are there any other indexes or triggers on the table that you need to keep?

- Paul
10qkyfp.gif

- If at first you don't succeed, find out if the loser gets anything.
 
I noticed that I'm being blocked my a query that has nothing to do with my "japan_rep" db.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top