What Are the Differences between CHAR and NCHAR in MS SQL Server?
Submitted by: AdministratorBoth CHAR and NCHAR are fixed length data types. But they have the following main differences:
* CHAR stores characters based on the code page with 1 byte per character most of the time.
* NCHAR stores characters using Unicode character set with 2 bytes per character most of the time.
* CHAR(n) specifies a length of n bytes by default.
* NCHAR(n) specifies a length of n characters by default.
Submitted by: Administrator
* CHAR stores characters based on the code page with 1 byte per character most of the time.
* NCHAR stores characters using Unicode character set with 2 bytes per character most of the time.
* CHAR(n) specifies a length of n bytes by default.
* NCHAR(n) specifies a length of n characters by default.
Submitted by: Administrator
Read Online MS SQL Server Job Interview Questions And Answers
Top MS SQL Server Questions
☺ | How To Start SQL Server Browser Service? |
☺ | Does Index Slows Down INSERT Statements? |
☺ | How To Execute the Cursor Queries with "OPEN" Statements? |
☺ | How To Test ODBC DSN Connection Settings? |
☺ | PHP MSSQL - How To Display a Past Time in Days, Hours and Minutes? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |