I get the following error message when I try to use a view that contains 2 separate SELECT statements "UNION"ed together.
Server: Msg 8618, Level 16, State 2, Line 1
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 clause exceeds 8000 bytes.
The funny thing is: I tested this view a few weeks ago, and encountered no problems. Now, I get this error message every time.
At the moment, I am running SQL server 7.0, but I may be upgrading to SQL server 2000 very soon.
I can supply the query behind the view if neccssary. It's about 325 lines long.
Does any one have any suggestions?
Thanks,
NWCHOWD
======================================
"I wish that I may never think the smiles of the great and powerful a sufficient inducement to turn aside from the straight path of honesty and the convictions of my own mind."
-David Ricardo, classical economist
======================================
Server: Msg 8618, Level 16, State 2, Line 1
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 clause exceeds 8000 bytes.
The funny thing is: I tested this view a few weeks ago, and encountered no problems. Now, I get this error message every time.
At the moment, I am running SQL server 7.0, but I may be upgrading to SQL server 2000 very soon.
I can supply the query behind the view if neccssary. It's about 325 lines long.
Does any one have any suggestions?
Thanks,
NWCHOWD
======================================
"I wish that I may never think the smiles of the great and powerful a sufficient inducement to turn aside from the straight path of honesty and the convictions of my own mind."
-David Ricardo, classical economist
======================================