SQL Database design :- varchar datatype doubt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tim007
    New Member
    • Feb 2008
    • 29

    SQL Database design :- varchar datatype doubt

    hi all,


    As we design a database
    I have a field for storing the last name,
    so i give the datatype varchar (50)

    now my question is there any difference if i were use

    varchar (200) instead of varchar(50)

    any performance or any issues
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    No there won't be any difference in database.

    Comment

    • tim007
      New Member
      • Feb 2008
      • 29

      #3
      Originally posted by debasisdas
      No there won't be any difference in database.

      so isnt it a bad coding style... how can we stop someone from doing this.

      Comment

      • tim007
        New Member
        • Feb 2008
        • 29

        #4
        Originally posted by tim007
        so isnt it a bad coding style... how can we stop someone from doing this.


        I mean how can we discourage such definations with some valid arguments

        Comment

        • ck9663
          Recognized Expert Specialist
          • Jun 2007
          • 2878

          #5
          Will this help?

          -- CK

          Comment

          • tim007
            New Member
            • Feb 2008
            • 29

            #6
            Originally posted by ck9663
            Will this help?

            -- CK
            Thanks it was quite informative.

            Comment

            Working...