We are using a SQL monitoring system (Confio) to monitor our SQL Server 2008 R2 Express database. Today it came up with a suggestion for 2 added indexes that appear to be almost identical:
CREATE NONCLUSTERED INDEX [IndexName] ON [dbo].[TestedDevices] ([DeviceNumber],
[TestRecordID])
and
CREATE NONCLUSTERED INDEX [IndexName] ON [dbo].[TestedDevices] ([DeviceNumber])
INCLUDE [TestRecordID])
These were not presented as one or the other, they were presented as "you need to add both of these." My question is, what is the difference between the two syntaxes? They both use the exact same fields.
Thanks for any insight! Dave Newman