July 11, 2002 at 8:53 am
I feel like I am in SQL Server hell today. All of a sudden a query that has been running for several weeks gives the following error:
"Could not allocate ancillary table for query optimization. Maximum number of tables in a query (256) exceeded".
There is no way this query accesses 256 tables! It accesses three tables at the most.
Any ideas as to what this means and how to fix it?
Thanks.
July 11, 2002 at 9:19 am
Is the query complex? Got enough room in tempdb? Updated statistics?
Andy
July 11, 2002 at 9:45 am
It is a series of queries that build to one final query. But, I have more complex queries than this one that are running fine.
Tempdb has plenty of room. Not sure what you mean by Updated statistics.
July 11, 2002 at 9:54 am
First is this a 6.5 database? If so what is the exact message with error number I had replyied to this same question before but cannot find.
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
July 11, 2002 at 9:58 am
It is SQL Server 7. The exact error message is what I quoted in my original post.
July 12, 2002 at 6:20 am
I found out that the error number is 146 and severity is 15.
Will continue to search for solution.
__________________________________
Searching the KB articles is like
picking your nose. You never know
what you'll find.
__________________________________
Searching the KB articles is like
picking your nose. You never know
what you'll find.
July 12, 2002 at 6:24 am
You might find the following article interesting:
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q308744&
Cheers, hot2use
__________________________________
Searching the KB articles is like
picking your nose. You never know
what you'll find.
__________________________________
Searching the KB articles is like
picking your nose. You never know
what you'll find.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply