Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2005
    Posts
    266

    Unanswered: DROP INDEX syntax for MS SQL 2000

    I am executing

    DROP INDEX [IX_Users] ON [Users]

    and i get a syntax error
    what is the exact syntax to DROP an INDEX for MS SQL 2000

    thank you

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    DROP INDEX [Users].[IX_Users]

    i always check BOL before i post a question here.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Dec 2005
    Posts
    266
    thank you
    a really strange syntax not at all like CREATE INDEX

  4. #4
    Join Date
    May 2004
    Location
    Seattle
    Posts
    1,313
    actually the syntax that Sean gave you is deprecated in 2005, although it still works. It will likely go away with katmai.

    in 2005, the preferred syntax is what you tried initially. See:

    http://msdn2.microsoft.com/en-us/library/ms176118.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •