A data analyst is creating a Microsoft SQL Server table to store customer feedback submitted in English, Spanish, Japanese, and Russian. The instance is running SQL Server 2017 with its default (non-UTF-8) collation. Which data type should be assigned to the FeedbackText column so that all characters are saved without corruption or loss of information?
NVARCHAR is the appropriate choice because it always stores Unicode text using UTF-16, guaranteeing support for virtually all modern languages regardless of the server's code page or collation.
VARCHAR requires a code-page-specific or UTF-8 collation. When the server is using the default non-UTF-8 collation (as in this scenario), characters outside that code page-such as Japanese or Cyrillic-may be truncated or converted to question marks.
CHAR is a fixed-length, non-Unicode type under the same limitations as VARCHAR and also wastes space for variable-length feedback.
CLOB (Character Large Object) is intended for very large blocks of text and is not a standard SQL Server column type; in SQL Server the modern equivalent would be NVARCHAR(MAX). For typical feedback strings, NVARCHAR or NVARCHAR(MAX) is more flexible.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why does NVARCHAR use Unicode, and why is it important for storing text?
Open an interactive chat with Bash
What is the difference between NVARCHAR and VARCHAR in SQL Server?
Open an interactive chat with Bash
What is the purpose of collation in SQL Server, and how does it affect VARCHAR and CHAR?
Open an interactive chat with Bash
CompTIA Data+ DA0-002 (V2)
Data Concepts and Environments
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .