I am trying to fetch data using composite primary key. I am sending 2 strings as query parameters, but SQL Server execution plan shows query parameters @p0 nvarchar(4000)
& @p1 nvarchar(4000)
and it is using index scan instead of index seek. Why?
How come I see varchar
size 4000, my column type is varchar
30 & 255 respectively?
How to force my execution plan to use index seek?
Thanks