What is difference between nchar and nvarchar?
Answer / Santosh Kumar Bhagat
Both `nchar` and `nvarchar` are used for character data in SQL Server, but they have different fixed-length handling behaviors. `nchar` will always take up the specified number of bytes even if the string is shorter, whereas `nvarchar` only takes up the necessary amount of space when the string is shorter than its maximum length. For example, creating an `nchar(10)` column would always use 10 bytes, while creating an `nvarchar(10)` column would only use the actual number of bytes needed for the stored string.
| Is This Answer Correct ? | 0 Yes | 0 No |
What does over partition by mean in sql?
What is rule base and cost base optimizer?
How much does sql cost?
How can triggers be used for the table auditing?
What is microsoft t sql?
What is an Integrity Constraint?
What is difference between left and right outer join?
Which normal form is best?
What are pl/sql packages?
Can we use ddl commands in pl sql?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)