Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Second week at my new job and looking at the DB :)

 

1.They have made every field either char or numeric or created user-defined database type.

Read about the diff between char and varchar:Char being faster and it's used for "fixed length" if it's less than 30 bytes. Varchar used for "variable length".

 

2. They have made ALL char fields NOT NULL with default value of BLANK.

 

Questions

 

1. Still not sure what variable length and fixed length mean. How would I know if the data is less than 30 bytes?

 

2. Is there a downside to making everything NOT Null and having default of blank?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...