After reading through that disscusion I tried to implement hints on SQL2000. The problem is that the hint must come at the end of the SQL string and not within the SELECT statement. The hint I’m trying to use is:
option (maxdop 1)
This causes the server to only use one processor to read the index. If I don’t use this hint I get the following error in WebI:
Database error: [Microsoft OLE DB Provider for SQL Server]:
Intra-query parallelism caused your server command (process ID #53) to deadlock. Rerun the query without intra-query parallelism by using the query hint option (maxdop 1)
The query with this option runs fine in Query Analyser but I can’t seem to get the hint to show up in the right place by creating an object like all the Oracle guys have.
The problem is that you need this to show up after all of the clauses (FROM, WHERE, GROUP BY, etc.), right?
Then, a dimension object just isn’t going to cut it for you – a dimension object is going to be part of the SELECT columns – and come before all of your extra clauses.
Another approach, give the BO generated SQL to a dba and explain you want to run this without having to use maxdop 1. It may be that a judicious re-jigging of the query can achieve this.