Differences between binary, varbinary, and image

Source: Internet
Author: User

Binary

A fixed-length binary data with a maximum length of 8,000 bytes.

Varbinary

A variable-length binary data with a maximum length of 8,000 bytes.

Image

Variable-length binary data. The maximum length is 2 ^ 31-1 (2,147,483,647) bytes.

The ntext, text, and image data types will be deleted in future versions of Microsoft SQL Server. Avoid using these data types in new development,
Consider modifying the applications that currently use these data types.Program. Use nvarchar (max), varchar (max), and varbinary (max ).

Unicode data with variable ntext length. The maximum length is 2 ^ 30-1 (1,073,741,823) characters. The storage size is twice the number of input characters (
In bytes ). Ntext SQL 2003 is synonymous with national text.
Text ServerCodeThe variable-length non-Unicode data in the page. The maximum length is 2 ^ 31-1 (2,147,483,647) characters. When the server code page is used
The storage is still 2,147,483,647 bytes. According to the string, the storage size may be less than 2,147,483,647 bytes.
The variable-length binary data of an image, ranging from 0 to 2 ^ 31-1 (2,147,483,647) bytes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.