有VARBINARY(MAX)和图像数据类型之间有很大的技术差别? [英] Is there a big technical difference between VARBINARY(MAX) and IMAGE data types?

查看:820
本文介绍了有VARBINARY(MAX)和图像数据类型之间有很大的技术差别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在读在互联网上关于 SQL服务器数据类型这些语句:

I was reading on internet these statements about SQL Server data types:

  1. VARBINARY(MAX) - 二进制字符串 具有可变长度储存 2 ^ 31-1字节。

  1. VARBINARY(MAX) - Binary strings with a variable length can store up to 2^31-1 bytes.

图片 - 二进制字符串用 可变长度可达2 ^ 31-1 (2,147,483,647)字节。

IMAGE - Binary strings with a variable length up to 2^31-1 (2,147,483,647) bytes.

有没有之间的一个非常大的技术差异 VARBINARY(MAX)图片的数据类型?

Is there a really big technical difference between VARBINARY(MAX) and IMAGE data types?

如果是有区别的:?我们要自定义如何ADO.NET插入和更新SQL Server中的图像数据字段

If there is a difference: do we have to customize how ADO.NET inserts and updates image data field in SQL Server?

推荐答案

它们存储相同的数据。这是尽可能去

They store the same data: this is as far as it goes.

图片是pcated德$ P $,并拥有一套功能和操作,与它的工作有限。 VARBINARY(最大)可以运行在诸如短 VARBINARY (同​​上,对文本 VARCHAR(最大))。

"image" is deprecated and has a limited set of features and operations that work with it. varbinary(max) can be operated on like shorter varbinary (ditto for text and varchar(max)).

不要使用图片任何新的项目:只是这里搜索民俗与图片和问题文本数据类型,因为有限的功能。

Do not use image for any new project: just search here for the issues folk have with image and text datatypes because of the limited functionality.

从SO例子:<一href="http://stackoverflow.com/questions/47203/sql-server-nvarcharmax-or-ntext-image-or-varbinary">One, <一href="http://stackoverflow.com/questions/1820374/sql-server-table-structure-for-storing-a-large-number-of-images">Two

这篇关于有VARBINARY(MAX)和图像数据类型之间有很大的技术差别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆