Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Posts
    5

    Question Unanswered: varchar/nvarchar length

    Hi,

    I have a pretty straightforward question to do with variable length fields I hope someone can help me with:

    When using varchar (or nvarchar), is there any point in specifying a smaller length than the maximum? Does it save space or improve performance at all?

    Thanks
    R

    edit: I suppose the max rowsize is an issue. any others?
    Last edited by robwhitby; 03-09-07 at 11:07.

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Max rowsize is an issue, as is the concept of enforcing constraints and business rules.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

  3. #3
    Join Date
    May 2004
    Location
    Seattle
    Posts
    1,313
    here's a related blog post on why not to just use varchar(max) for everything. It's the comments you need to read. The actual post has the wrong idea.

    http://sqljunkies.com/WebLog/simons/...rchar_max.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •