|
INTERVIEW QUESTIONS
DATABASE
MS SQL SERVER
DETAILS
Question: What Are Unicode Character String Data Types in MS SQL Server?
Answer: Unicode character string data types are used to store Unicode character strings. SQL Server 2005 supports the following Unicode character string data types:
* NCHAR - Unicode character strings with a fixed length of n characters defined as NCHAR(n). The maximum length is 4,000 characters. NCHAR has two synonyms of NATIONAL CHAR and NATIONAL CHARACTER. * VARCHAR - Unicode character strings with a variable length of n characters defined as VARCHAR(n). The maximum length is 4,000 characters. NVARCHAR has two synonyms of NATIONAL CHAR VARYING and NATIONAL CHARACTER VARYING. NVARCHAR also has special form as NVARCHAR(MAX), which can store up to 2^31-1 bytes. * NTEXT - Unicode character strings with a variable length up to 2^31-1 (2,147,483,647) bytes. NTEXT is equivalent to NVARCHAR(MAX). NTEXT has a synonym of NATIONAL TEXT.
|
|
|
Category |
MS SQL Server Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9060 users |
Added on |
9/23/2014 |
Views |
67434 |
Rate it! |
|
|
Question:
What Are Unicode Character String Data Types in MS SQL Server?
Answer:
Unicode character string data types are used to store Unicode character strings. SQL Server 2005 supports the following Unicode character string data types:
* NCHAR - Unicode character strings with a fixed length of n characters defined as NCHAR(n). The maximum length is 4,000 characters. NCHAR has two synonyms of NATIONAL CHAR and NATIONAL CHARACTER. * VARCHAR - Unicode character strings with a variable length of n characters defined as VARCHAR(n). The maximum length is 4,000 characters. NVARCHAR has two synonyms of NATIONAL CHAR VARYING and NATIONAL CHARACTER VARYING. NVARCHAR also has special form as NVARCHAR(MAX), which can store up to 2^31-1 bytes. * NTEXT - Unicode character strings with a variable length up to 2^31-1 (2,147,483,647) bytes. NTEXT is equivalent to NVARCHAR(MAX). NTEXT has a synonym of NATIONAL TEXT. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What Are Character String Data Types in MS SQL Server?
|
View Answer
|
|
What Are Date and Time Data Types in MS SQL Server?
|
View Answer
|
|
What Are Approximate Numeric Data Types in MS SQL Server?
|
View Answer
|
|
What Are Exact Numeric Data Types in MS SQL Server?
|
View Answer
|
|
How Many Categories of Data Types Used by SQL Server?
|
View Answer
|
|
How To Create User Messages with PRINT Statements in MS SQL Server?
|
View Answer
|
|
How To Use GO Command in "sqlcmd"?
|
View Answer
|
|
What Happens to a Statement Batch If There Is a Compilation Error?
|
View Answer
|
|
What Is a Transact-SQL Statement Batch in MS SQL Server?
|
View Answer
|
|
How To Enter Comments in Transact-SQL Statements?
|
View Answer
|
|
How To Start and End Transact-SQL Statements?
|
View Answer
|
|
What Is a Transact-SQL Statement?
|
View Answer
|
|
What Is Transact-SQL Language?
|
View Answer
|
|
What Is SQL Language?
|
View Answer
|
|
Can Group Functions Be Used in the ORDER BY Clause in MS SQL Server?
|
View Answer
|
|
Can Multiple Columns Be Used in SQL GROUP BY Clause in MS SQL Server?
|
View Answer
|
|
How To Count Duplicated Values in a Column in MS SQL Server?
|
View Answer
|
|
How To Apply Filtering Criteria at Group Level with The HAVING Clause in MS SQL Server?
|
View Answer
|
|
How To Divide Query Output into Multiple Groups with the GROUP BY Clause in MS SQL Server?
|
View Answer
|
|
Can Group Functions Be Mixed with Non-group Selection Fields in MS SQL Server?
|
View Answer
|