Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not insert a row
larger than the page size into a hash table. Resubmit the query with
the ROBUST PLAN hint.
However, when resubmitting the query with the ROBUST PLAN, I get the
following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Warning: The query
processor could not produce a query plan from the optimizer because
the total length of all the columns in the GROUP BY or ORDER BY clause
exceeds 8000 bytes. Resubmit your query without the ROBUST PLAN hint.
Has anyone else had the same problem?
--
Umachandar Jayachandran
SQL Resources at http://www.umachandar.com/resources.htm
( Please reply only to newsgroup. )
There are only two integer fields in the columns for the GROUP BY,
which are definitely much less than the 8000 bytes limit. That is the
confusing part.
I am using SQL Linked Servers to do queries against content indexed by
Index Server (using Index Server's OLEDb interface).
When I used the min function on one of the custom indexed properties,
I received the same error that you are getting.
The fix was to cast the custom property before using the min function
Old query:
SELECT chapterid, min(pagenum) minpage FROM OPENQUERY(...) group by
chapterid
Fix:
SELECT chapterid, min(cast(pagenum as int)) minpage FROM
OPENQUERY(...) group by chapterid
Hope this helps...
scott.c...@bfpna.com (Scott Centille) wrote in message news:<b3358825.01082...@posting.google.com>...