I'm getting the following error when I try to use the FORCESEEK hint with the query below:
Msg 8622, Level 16, State 1, Line 96 Query processor could not produce a query plan because of the hints defined in this query. Resubmit the query without specifying any hints and without using SET FORCEPLAN.
SELECT A.IndexedField1
INTO #TEMP
FROM dbo.IndexedView1 AS A WITH (FORCESEEK)
INNER JOIN dbo.IndexedView2 AS B
ON A.IndexedField1 = B.IndexedField1
AND A.IndexedField2 = B.IndexedField2
IndexedView1 and IndexedView2 are both schemabound indexed views, and there's a unique clustered index on both views on the fields IndexedField1, IndexedField2. Not sure if relevant, but the clustered index is 40 bytes big (per row).
Here's an example of exactly what both views look like under the hood:
SELECT
IndexedField1,
RIGHT(CONVERT(VARCHAR(34), HASHBYTES('MD5', OtherField1 + '||' OtherField2)), 32) AS IndexedField2
FROM dbo.Table1
Nothing too fancy, and no hints inside the view's query.
This is the estimated execution plan (without trying to use a query hint):