While testing query:
select AccountID, SchemaID, Name, Description, CurrentVersion
from [test].[dbo].[FormSchema]
where SchemaID like '%[^a-zA-Z0-9-_]%'
After running execution plan it is showing clustered index scan with 100% cost. There is one clustered index on column schemaId.
My question is how can I make it index seek rather than scan?
SchemaID = 'Bob'
, you could skip to the Bs and flip a few pages left or right until you got to the Bobs - an index seek.