This is a request to create an index to create an idx_ncl_2 index in BFPRODATTRASSOCIATION (value, attribute) include (productid)
BFPRODATTRASSOCIATION table structure
ProdAttrAssociationId bigint no 8 ProductId bigint no 8 AttributeId bigint no 8 Value varchar no 4096
I get this error:
The maximum key length is 900 bytes. The idx_ncl_2 index has a maximum length of 1237 bytes.
I need to create a non-clustered index in this column. Is there a way to create an index for a column with a varchar data type and larger than 900.
Please offer.
- , 900 .
varchar (4096). - SQL Server - , , . . Books Online - .
"" 900 , - . , "" ( ), , , - , 900 .
CREATE NONCLUSTERED INDEX idx_ncl_2 ON BFPRODATTRASSOCIATION(attributeid) INCLUDE (productid, value)
.
, . . - T-SQL - .
Source: https://habr.com/ru/post/1748507/More articles:Intelligent auto complete for phased git file names used with diffftool - gitС# - Есть ли строковое представление DateTime.Now()? - c#Apple HTTP Live Streaming implementation - mediafilesegmenter issue - mediaoracle - do not tolerate drops - oracleSerializing the object graph in .NET and updating the code version - .netHow to update property view in Eclipse RCP? - propertiesThreads from several processes actually work - multithreadingКодирование текстового сообщения JMS - character-encodingPHP live chat with ajax poll - ajaxA PCRE (recursive) pattern that matches a string containing the correct substring in brackets. Why is this failure? - regexAll Articles