Length of EmailAddress field in database
Possible Duplicate:
What is the optimal length for an email address in the database?
What would you put in the email address length field?
In the db I care that we have nvarchar (60), but that seems arbitrary.
Is there a maximum length I can allow or the length of email addresses is unlimited?
EDIT this is cheating What is the optimal length for an email address in the database?
please close
source to share
The maximum length for an email address is 254 characters.
Each email address has two parts. The local part that appears before the @ sign and the domain part that follows. In " user@example.com ", the local part is "user" and the domain part is "example.com".
The local part cannot exceed 64 characters and the domain part cannot exceed 255 characters.
The combined length of local domains + @ + email addresses must not exceed 254 characters. As described in RFC3696 Errata ID 1690 .
What is the optimal length for an email address in the database?
source to share
This wikipedia article contains useful background information.
You should be safe with 256 characters.
source to share