在Sql Server 2008中存储附件(.txt,图像,pdf,doc,xlx)的数据类型? [英] Datatype to store attachments(.txt,image,pdf,doc,xlx) in Sql Server 2008?

查看:122
本文介绍了在Sql Server 2008中存储附件(.txt,图像,pdf,doc,xlx)的数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在Sql Server 2008中存储附件的数据类型是什么.

谢谢,
Balu

Hi all,

what is the datatype to store attachments in Sql Server 2008.

Thanks,
Balu

推荐答案

使用varbinary(max)


基于文件的类型和大小.

可以是

varbinary(n)仅存储8000个字节
varbinary(max)存储2 GB
Image stores存储2,147,483,647字节.
BLOBs

谢谢
Based on the type and size of file.

It can be

varbinary(n) stores only 8000 bytes
varbinary(max) stores 2 GB
Image stores stores 2,147,483,647 bytes.
BLOBs

Thanks


这篇关于在Sql Server 2008中存储附件(.txt,图像,pdf,doc,xlx)的数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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