March 22, 2006 at 10:26 am
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
March 27, 2006 at 8:00 am
This was removed by the editor as SPAM
March 27, 2006 at 12:26 pm
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
March 28, 2006 at 9:13 am
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