Drop Index, but name is NULL

  • I need to drop an index on a table, but the index name is NULL.

    When I run this stmt, it appears:

    select * from sysindexes where id = 750625717 and name is null

    The syntax I have found to drop an index is:

    drop index tablename.indexname

    Any suggestions?

    TIA

  • This was removed by the editor as SPAM

  • That simply implies that the index does not exists for that ID or that it si not a 'real'  index.

     

    Where did you get that ID from ?

     

     


    * Noel

  • sysindexes.name is not a nullable column, so this seems fishy. What is the indid of the index in question? What does this give you:

    select 'drop index [' + object_name(id) + '].[' + name + ']' from sysindexes where id = 750625717

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply