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 203157
In Process

The Archive Base Latest Questions

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

MS SQL Server 2000 I’ve realized that in the last couple of tables I’ve

  • 0

MS SQL Server 2000

I’ve realized that in the last couple of tables I’ve created, I’ve been defining the varchar length of columns by power of 2. So, I’ve got one column that is length 1024 or 512 or 256. I realized though that depending on the length of the other columns in the table, this probably doesn’t matter at all. Is there any sense in implementing this kind of design? I’m thinking No, but wanted to get your opinion.

  • 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-11T17:21:14+00:00Added an answer on May 11, 2026 at 5:21 pm

    I would say that size of the column should represent the type of data you are storing. If there is any speed benefit to it, it will be negligible, and the headaches you have with improper column lengths will far outweigh any thing gained.

    The other thing that you have to keep in mind is that there is a maximum record length in Sql 2000. I think its something around 8192 bytes. If you are allocating fields in powers of 2 you are potentially adding length from one column that will be needed elsewhere. If your columns are small and there aren’t many per table, this won’t be an issue, but tables with large varchar fields (say around the 5000 range which means you’d have to allocate 8192 to follow the power of 2 convention) you are going to have to allocate much more space for that field than is needed, and it will quite possibly prevent you from adding other fields which are needed in that table as well.

    You can break your rule for this scenario, but that means that you have stopped following the rule you have set. That can be ok, but it also means that when someone goes back and looks at the overall schema later, the question will arise as to why certain columns follow one set of rules for allocating space and others do not.

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

Sidebar

Related Questions

Using SQl Server 2000 I have a stored procedure that joins 2 tables and
SQL Server 2000. Single table has a list of users that includes a unique
I have a SQL Server 2000 stored procedure that accepts a number of input
Using SQL Server 2000. I have a table that receives a dump from a
Using Vb.net/SQL Server 2000 updating a row via a gridview/sqldatasource Stored proc: @ISTag varchar(10),
I have a SQL Server 2000 box that houses several databases, some of which
SQL Server 2000 Standard, Windows 2003 My coworker removed 'BUILTIN\Administrators' group from SQL Server
SQL Server 2000 doesn't seem to support the xml based .xlsx file types. Besides
SQL Server 2000: Is there a way to find out server memory / CPU
SQL Server 2000 on Windows Server 2003. I am trying to run a backup,

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.