Say I have a table like this:
create table SomeTable
(
id int identity(1, 1) not null primary key clustered,
SomeString1 varchar(50) not null,
SomeString2 varchar(50) not null
)
go
create nonclustered index IX_SomeString1
on SomeTable(SomeString1)
go
If I was to do this:
insert into SomeTable(SomeString1, SomeString2)
values('foo', 'bar')
go
And view the actual execution plan, I only see a Clustered Index Insert. Why am I not seeing a Nonclustered Index Insert in the execution plan?



select * from SomeTable where String1 = 'foo', then I see that the query optimizer does in fact choose the indexIX_SomeString1for an index seek. So it must be updating that index, no? – anon Mar 9 '12 at 18:47