Hi there,
For one my query i am not able to use the query hint plan inside the IF exists clause. For Example:
IF EXISTS(SELECT 1 FROM Person.Person a INNER JOIN Person.BusinessEntity b ON a.BusinessEntityID = b.BusinessEntityID OPTION (FORCE ORDER)) BEGIN PRINT 'Hello World!' END
The above can't be parsed, whereas query mentioned below works:
SELECT 1 FROM Person.Person a INNER JOIN Person.BusinessEntity b ON a.BusinessEntityID = b.BusinessEntityID OPTION (FORCE ORDER))
Can you please let me know how to specify the query hint inside the if exists clause.
Regards
Harsh
Regards Harsh