This article is a mirror article of machine translation, please click here to jump to the original article.

View: 978|Reply: 0

[Source] The maximum varchar length that SQL Server creates for non-clustered indexes

[Copy link]
Posted on 2025-5-9 09:22:51 | | | |
Requirements: I need to create an index for a field in a table in the SQL Server database, and the length of the field needs to be specified, what is the maximum varchar length for SQL Server to create a non-clustered index?

The aggregated index is 900 bytes. The non-aggregated index is 1,700 bytes. For SQL Server 2014 (12.x) and earlier, all editions support 900 bytes for all index types.



Reference:The hyperlink login is visible.




Previous:Angular 18 Series (32) ControlValueAccessor custom form controls
Next:Love recycling laptop quality inspection software
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com