Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 403117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:11:14+00:00 2026-05-12T17:11:14+00:00

I understand that the Cannot sort a row of size 9754, which is greater

  • 0

I understand that the “Cannot sort a row of size 9754, which is greater than the allowable maximum of 8094.” from SQL server is caused by a row that has over 9k characters in it, which is greater than the page size limit in SQL Server 7. But I’m not calling an order by on the data below, so why does the error say it cannot sort?

SELECT <a number of columns...>
FROM Category10Master c10
JOIN Category20Master c20 ON c10.Cat10ID = c20.ParentCatID 
JOIN Category25Master c25 ON c20.Cat20ID = c25.ParentCatID 
JOIN Category30Master c30 ON c25.Cat25ID = c30 .ParentCatID 
JOIN Item i ON c30.Cat30ID = i.ParentCatID

EDIT: And yes, I know I can call fewer columns to solve this – the actual query calls the columns needed explicitly and still exceeds the row size limit. This is actually in a view that’s called site-wide so changing the view to pull back fewer columns isn’t an attractive option – dozens of pages would need to be modified to get their data from somewhere other than the view. I’m unlucky enough to have interhited an ugly design and am hoping someone has a more attractive solution than pulling less data.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:11:15+00:00Added an answer on May 12, 2026 at 5:11 pm

    Check the estimated query plan for the sort, to perform one of the joins it may be choosing a merge join for example, and to achieve this it requires the data to be sorted first prior to the merge – at that point you’ve sorted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got some sort of formatting -problem that I cannot understand, a short example
First, I understand that an image cannot be copied from a local machine into
I understand that one cannot break an if statement and only from a loop,
I understand that I cannot add preconditions on an interface implementation. I have to
I noticed that there is one change about ASP.NET Routing. I cannot understand why
I understand that NSNumber cannot go beyond 1/10ths place. What can I use as
I understand that you cannot return a generic list in a standard .asmx webservice.
I am building a small activex control. I understood that activex cannot call a
I understand that if the gwt application needs to support multiple locale values, all
I understand that the elements of a python set are not ordered. Calling the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.