SQL SERVER – Difference between CHAR, VARCHAR, NVARCHAR and VARCHAR(MAX) – Quiz – Puzzle – 15 of 31

Click here to get free chapters (PDF) in the mailbox

Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the Author’s Perspective.

Beyond Relational has come up with a very interesting concept – they have converted a few of the questions from my book into the SQL Quiz. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, Vinod Kumar (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.

SQL Quiz

SQL SERVER - Difference between CHAR, VARCHAR, NVARCHAR and VARCHAR(MAX) - Quiz - Puzzle - 15 of 31 15 It is a common saying that, “where you should use a nail, you should not use a sword”.  Every little tool has its own usage and its own purpose. What are the differences of CHAR, VARCHAR, NVARCHAR and VARCHAR(MAX) datatypes?

Link to participate in SQL Quiz

Notes of Vinod Kumar

As we start moving our old ways of using “text” datatypes to VARCHAR(MAX), what is it that we get as an advantage? Read about more specific advantages. And while you’re at it, you might as well answer this question: “What is the storage requirements and special cases when using these datatypes?”

Notes of Pinal Dave

When people ask me why there are similarly looking features that exist in any product, here is my response: In the real world, even identical twins are not really identical. Likewise human finger prints are not alike. In the same way, most products do not come up with two similar features. Every feature has its own usage and specific advantages. Therefore as a product consumer, it is our duty to understand the feature correctly and try to take advantage of its positive side. With regards to CHAR, VARCHAR and NVARCHAR, there are three major components to pay attention to: 1) Storage, 2) Performance and 3) Capabilities.

Additional Notes

SQL Server Interview Questions and Answers ISBN: 1466405643 Page#85-87
Replace TEXT with VARCHAR(MAX) – Stop using TEXT, NTEXT, IMAGE Data Types
Constraint on VARCHAR(MAX) Field To Limit It Certain Length


There are exciting prizes awaiting the winners. Click here for Prizes and Frequently Asked Questions.

Link to participate in SQL Quiz

Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.

Reference: Pinal Dave (https://blog.sqlauthority.com)

Previous Post
SQL SERVER – Using SafePeak to Accelerate Performance of 3rd Party Applications
Next Post
SQL SERVER – CHECKPOINT Behavior and Database Recovery Models – Quiz – Puzzle – 16 of 31

Related Posts

No results found.

4 Comments. Leave new

Leave a Reply