using sql server 2017, may I know how to add index to nvarchar(max) column by script, any script reference?
or how to build a xml column and add index to xml column by script?
try this
CREATE NONCLUSTERED INDEX IDX_NC_temp_name ON tablename(idcolumn) INCLUDE(columnamewithnvarcharmax)