Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing a varchar(4000)
Message
De
05/02/2014 08:37:10
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01593130
Message ID:
01593273
Vues:
26
So I am trying to create a full-text index on that table, but it wont create. I mentioned in the other responses to Mickel Fournier that I was able to create a unique primary key on the table (I thought that was the problem), but I still get the error "You need to define one or more full-text compatible indexes on the table to create a full-text index."

I have tried to find what it means by 'compatible index(es)', but have not been able to. Any help would be greatly appreciated.

>>I need to create an index on a varchar(4000) column. BOL says:
>>
>>The maximum size for an index key is 900 bytes. Indexes on varchar columns that exceed 900 bytes can be created if the existing data in the columns do not exceed 900 bytes at the time the index is created; however, subsequent insert or update actions on the columns that cause the total size to be greater than 900 bytes will fail.
>>
>>Does that mean I CAN"T create an index on that field (yes, it has entries longer than 900)? It is a field that will need a full-text index as it will be searched.
>>
>>All help is greatly appreciated!
>
>Yes, BOL doesn't lie and your interpretation is correct. There was a relatively recent discussion at MSDN Transact-SQL forum as to why there is such limitation.
Thank You

Rollin Burr

Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform