SQLCE Drop Unique Index

Hi,

I created a unique index in SQLCE using "CREATE UNIQUE INDEX "idxABC" ON "ABC"". Now I want to drop this index, may I know how do I do that?

I tried "DROP INDEX "ABC.idxABC"", doesn't work. The document says it won't work on PRIMARY KEY or UNIQUE INDEX anyway.

I tried "ALTER TABLE "ABC" DROP CONSTRAINT "idxABC"", doesn't work too.

What should I do? Thanks in advance!
yeewee64Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mikal613Commented:
try

ALTER TABLE 'ABC' DROP CONSTRAINT 'idxABC'

or

ALTER TABLE ABC DROP CONSTRAINT idxABC
0
yeewee64Author Commented:
Hi Mikal613,

Thanks for the response. I've found the answer already. It's just "DROP INDEX ABC.idxABC", without the single or double quotes around the index name :S.

And I think the document was referring to PRIMARY KEY or UNIQUE constraint made to table or column that requires ALTER TABLE DROP CONSTRAINT.


0
Mikal613Commented:
hence

ALTER TABLE ABC DROP CONSTRAINT idxABC

:)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yeewee64Author Commented:
Hi Mikal613,

I tried "ALTER TABLE ABC DROP CONSTRAINT idxABC", it didn't work. I think that's because I used "CREATE INDEX" to create it.

So far, only "DROP INDEX" works for me. So I don't think I can set your comment as the answer to this question. Do you mind if I close this question and get a refund? I mean, as far as I know, experts-exchange only give me two options, to give all 195 points or 0 point to you. I wish I could give half the points to you for attempting to answer my question, and your answer was pretty close too.

0
Mikal613Commented:
post this in commnity support
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Smartphone Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.