When I used SQL Server Management Studio to display the estimated execution plan of a query it will sometimes suggest a missing index.
My question is about the sysname in the following suggestion – What does sysname mean?
I would normally just replace the firstline with CREATE NONCLUSTERED INDEX [IX_Users_Surname] so I don’t understand the sysname reference.
CREATE NONCLUSTERED INDEX [<Name of Missing Index, sysname,>]
ON [dbo].[Users] ([Surname])
INCLUDE ([UserID],[Firstname],[Email],[Password])
The
<name, type>syntax is for the SSMS template replacement dialog, see Replace Template Parameters:Therefore
sysnameis the type of the index name template parameter, and sysname is the appropriate type.