简体   繁体   中英

What is the best datatype for storing a blogpost in SQL Server?

I´m using SQL Server and programming a blogtool.

I want to store texts longer than 4000 chars and a want it to be fast searchable.

Is ntext the right datatype to use?

使用varchar(max)或nvarchar(max)-不推荐使用text和ntext数据类型,不应再使用

Ray is correct - use Varchar(Max) or NVarchar(Max). This supports data up to 2GB.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM