In part of our system we use QueryAllRecords=False with CountAllRecords=True and this generally this works OK but on certain queries the initial resultset is returned in 5 seconds but the count then takes 2.5 minutes!
Is there any way the Count(*) statement can use the optimiser hint used in the original query?
Is there any way the Count(*) statement can use the optimiser hint used in the original query?