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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:34:45+00:00 2026-05-29T18:34:45+00:00

For Email addresses, how much space should I give the columns in SQL Server.

  • 0

For Email addresses, how much space should I give the columns in SQL Server.

I found this definition on Wikipedia:

http://en.wikipedia.org/wiki/Email_address

The format of email addresses is local-part@domain where the
local-part may be up to 64 characters long and the domain name may
have a maximum of 253 characters – but the maximum 256 characters
length of a forward or reverse path restricts the entire email address
to be no more than 254 characters

And this one:

http://askville.amazon.com/maximum-length-allowed-email-address/AnswerViewer.do?requestId=1166932

So for now, total characters allowed for e-mail address is 64 (local
part) + 1("@" sign) + 255 (domain part) = 320

It’s possible that in the future they’ll increase the local-part limit
to 128 characters. which would make total of 384 characters.

Any thoughts?

  • 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-29T18:34:52+00:00Added an answer on May 29, 2026 at 6:34 pm

    I’ve always used 320 based on your latter calculation. It doesn’t cost you anything to allow more*, unless people abuse it and stuff junk in there. It could cost you to allow less, as you’ll have a frustrating users if they have legitimately longer e-mail addresses and now you’ll have to go back and update schema, code, parameters etc. In the system I used to work with (an e-mail service provider), the longest e-mail address I came across naturally was about 120 characters – and it was clear they were just making a long e-mail address for grins.

    * Not strictly true, since memory grant estimates are based on the assumption that varying-width columns are half-populated, so a wider column storing the same data can have lead to vastly different performance characteristics of certain queries.

    And I’ve debated whether NVARCHAR is necessary for e-mail address. I’ve yet to come across an e-mail address with Unicode characters – I know the standard supports them, but so many existing systems do not, it would be pretty frustrating if that was your e-mail address.

    And while it’s true that NVARCHAR costs double the space, with SQL Server 2008 R2 you can benefit from Unicode compression, which basically treats all non-Unicode characters in an NVARCHAR column as ASCII, so you get those extra bytes back. Of course compression is only available in Enterprise+…

    Another way to reduce space requirements is to use a central lookup table for all observed domain names, and store LocalPart and DomainID with the user, and store each unique domain name only once. Yes this makes for more cumbersome programming, but if you have 80,000 hotmail.com addresses, the cost is 80,0000 x 4 bytes instead of 80,000 x 11 bytes (or less with compression). If storage or I/O is your bottleneck, and not CPU, this is definitely an option worth investigating.

    I wrote about this here:

    • Storing E-mail addresses more efficiently in SQL Server
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to clean up some email addresses in sql server. I can
I am writing an application which tests email addresses, for one part of this
I'm in the planning stages of building a SQL Server DataMart for mail/email/SMS contact
I have email addresses encoded with HTML character entities. Is there anything in .NET
When placing email addresses on a webpage do you place them as text like
I have multiple email addresses linked to my gmail account. I am signed up
I have email addresses like user1@gmail.com , user2@ymail.com user3@hotmail.com ... etc. I want a
Most of my users have email addresses associated with their profile in /etc/passwd .
How can I create an array of email addresses contained within a block of
I have a large list of email addresses, and I need to determine which

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.