Question : SQL non clustered index

We have a table and we want to create a non clustered index.  Will this help in performance in searching?  Do we need to adjust how the index is created?

CREATE NONCLUSTERED INDEX [IX_Topic_Subject] ON [dbo].[Topic]
(
      [Subject] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
GO

Answer : SQL non clustered index

If you are matching on the entire column instead of using a LIKE operation, yes, there is.

However, any time you start using functions or LIKE, you are basically tossing your indexes out the window.

Random Solutions  
 
programming4us programming4us