Char datatype
- Stores character (non-unicode) data.
- Stores data in fixed-length format.
- Choose char datatype when size of data is consistent.
- Stores Character (non-unicode) data.
- Stores data in variable-length format.
- Choose varchar datatype when size of data varies between 8000 bytes
Varchar(MAX) datatype
- Stores Character (non-unicode) data.
- Stores data in variable-length format.
- Choose varchar datatype when size of data varies and it may exceeds 8000 bytes.
Text datatype
- Text datatype is used in previous versions of SQL Server, it is recommended to use Varchar(MAX) instead of Text datatype, as ntext, text, and image data types will be removed in a future version of Microsoft SQL Server
- Stores large amount of character string
- Stores data in variable-length format.
- Choose text datatype when size of data varies may exceeds 8000 bytes.
Have a nice day... 'N happy Coding :)
No comments:
Post a Comment