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

  • Home
  • SEARCH
  • 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 6577689

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:40:11+00:00 2026-05-25T15:40:11+00:00

I am making a huge table simulating a very rough scenario in SQL (a

  • 0

I am making a huge table simulating a very rough scenario in SQL (a huge table with 1024 atts, of course a lot of rows if you wonder), the data type for each attribute are floats.

To do so I am using another table which has 300 attributes and I am doing something like

SELECT [x1]
      ,[x2]
      ,[x3]
      ,[x4]
      ,[x5]
      ,[x6]
      ,[x7]
      ,[x8]
      ,[x9]
      ,[x10]
      ,[x11]
      ,[x12]
      ,[x13]
      ,[x14]
      ,[x300]
      ,x301= x1 
      ,x302= x2 
       ...
      ,x600= x300
      ,x601= x1   
      ,x602= x2 
       ...
      ,x900= x300
      ,x901= x1   
      ,x902= x2 
      ...      
      ,x1000= x100
      ,x1001= x101   
      ,x1002= x102   
      ,x1003= x103   
      ,x1004= x104  
      ...
      ,x1024= x124
INTO test_1024
FROM my_300;

However an error is present:

Msg 1701, Level 16, State 1, Line 2 
Creating or altering table 'test_1024' failed because the minimum row size 
would be 8326, including 134 bytes of internal overhead. This exceeds the 
maximum allowable table row size of 8060 bytes.

How to overcome this issue? (I know SQL can handle 1024 columns…)

  • 0 0 Answers
  • 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-25T15:40:12+00:00Added an answer on May 25, 2026 at 3:40 pm

    Let’s have a look at the figures in the error message.

    ‘8326, including 134 bytes of internal overhead’ means that data only has taken 8326-134=8192 bytes.

    Given that the number of columns is 1024, it’s exactly 8192÷1024=8 bytes per column.

    Moving on to the overhead, of those 134 bytes, your 1024 columns require 1024÷8=128 bytes for the NULL bitmap.

    As for the remaining 134-128=6 bytes, I am not entirely sure but we can very well consider that size a constant overhead.

    Now, let’s try to estimate the maximum possible number of float columns per table in theory.

    The maximum row size is said to be 8060 bytes.

    Taking off the constant overhead, it’s 8060-6=8054 bytes.

    As we now know, one float column takes 8 bytes of data plus 1 bit in the bitmap, which is 8×8+1=65 bits.

    The data + NULL bitmap size in bits is 8054×8=64432.

    The estimated maximum number of float columns per table is therefore 64432÷65≈991 columns.

    So, commenting out 33 columns in your script should result in successful creation of the table.

    To verify, uncommenting one back should produce the error again.

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

Sidebar

Related Questions

I have a huge table full of records and with PHP I'm making a
I am making a small C# GUI application that reads table-like (cells, rows, columns)
Making an adobe flex ui in which data that is calculated must use proprietary
I have a huge set of data of tables in Open Office 3.0 document
I'm working on a huge, old project with a lot of brittle code, some
I'm having a huge block trying to understand trees while making a Tic-Tac-Toe bot.
We currently have a quite complex business application that contains a huge lot of
While making a webpage I've noticed a huge decrease in performance(client side) when I've
I am interested in making a decent WPF application which will be pretty huge.
I'm working with a legacy SQL Server database which has a core table with

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.