用户登录
用户注册

分享至

SQL Server 中图像字段内容的大小是多少?

  • 作者: 我的男神是帅比i
  • 来源: 51数据库
  • 2022-10-21

问题描述

我在 SQL Server 中有一个表.此表有一个图像字段,应用程序将文件存储在其中.

I have a table in SQL Server. This table has an image field and the application stores files in it.

有没有办法用T-SQL读取image字段中文件的大小?

Is there a way to read the size of the file in the image field using T-SQL?

推荐答案

SELECT DATALENGTH(imagecol) FROM  table

请参阅 MSDN

软件
前端设计
程序设计
Java相关