SQL Server 2008上varbinary(max)文件流的长度 [英] Length of varbinary(max) filestream on SQL Server 2008

查看:332
本文介绍了SQL Server 2008上varbinary(max)文件流的长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一些有效的方法来获取"varbinary(max)filestream"列中的数据长度? 我发现只有转换为varchar然后调用"LEN"函数的示例.

Is there some efficient way how to get length of data in "varbinary(max) filestream" column? I found only samples with conversion to varchar and then calling the "LEN" function.

推荐答案

SELECT
      length = DATALENGTH(Name),
      Name 
FROM 
      Production.Product 
ORDER BY 
      Name

返回用于表示任何表达式的字节数."

T-SQL和引用来自MSDN的 DATALENGTH(Transact-SQL)库.

T-SQL and quote taken from MSDN's DATALENGTH (Transact-SQL) library.

这篇关于SQL Server 2008上varbinary(max)文件流的长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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