The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Note
TEXT→Deprecated, used for very large text (up to 2GB).VARCHAR(MAX)→ Modern replacement, supports up to 2^31-1 characters, can be used likeVARCHAR.Difference between
TEXTandVARCHAR(MAX)in SQL ServerDeprecation
,TEXT, andNTEXTtypes are deprecated (Microsoft recommends avoiding them).IMAGEVARCHAR(MAX)(andNVARCHAR(MAX),VARBINARY(MAX)) are the modern replacements.Storage
TEXTstores data outside the row (in LOB storage) with only a 16-byte pointer in the row.VARCHAR(MAX)can store data in-row (up to 8,000 bytes) and moves to LOB storage only if data exceeds that.Size Limit
2^31-1characters forVARCHAR(MAX)).Functionality
TEXThas limited support: cannot be used with string functions (REPLACE,SUBSTRING,LEN, etc.) directly without special workarounds.VARCHAR(MAX)behaves like a regularVARCHARand supports all string functions.Performance
VARCHAR(MAX)is generally faster and integrates better with modern SQL Server features.TEXTis slower due to pointer lookups and restricted operations.Best Practice:
Always use
VARCHAR(MAX)(orNVARCHAR(MAX)for Unicode) instead ofTEXT.