I have a person table that will have columns such as first name and last name.
What is the best data type to use for these columns as they can be any length. Is there a rule of thumb when it comes to this?
I am using sql server 2008.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I think it is highly unlikely someone to have a Firstname or Lastname more than 50 characters.Datatype for string type with Unicode characters isNVARCHARand you can limit both of them to50 or even 100would not make a much difference.So you can say