Solved

Can the max number of columns for a table in MSSQL 2000 be set to over 1024?

Posted on 2006-07-12
4
251 Views
Last Modified: 2008-03-10
I have checked some online books for SQL and queried EE to find out if there is away to increase the max number of columns that are allowed in a table in MSSQL 2000.   Apparently the limit is 1024.  I'm wondering if that is a default value that can be increased?

Thank you.
0
Comment
Question by:BladesAway
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 27

Accepted Solution

by:
ptjcb earned 100 total points
ID: 17094178
It is 1024 and it is not user-configurable.
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 17094242
Just out of curiosity, what are your requirements which need more than 1024?
I'm sure there will be a work-around.
0
 
LVL 27

Expert Comment

by:ptjcb
ID: 17094290
You would have to break the base table into several smaller tables that do fit the requirement - sort of like vertical partioning. This link will give you some good ideas: http://www.sqlteam.com/Item.ASP?ItemID=684

You will also have to deal with the page size in SQL - it is 8K, with about 8,096 available for a row. You cannot have a row that spans pages.
0
 
LVL 27

Expert Comment

by:ptjcb
ID: 17094338
Sorry, the maximum size of a single data row is 8060 (some of the bytes are used as a header) - that is why you will see maximum bytes in a row as 8060. That also is not user-configurable and based on the size of the data page within SQL.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question