Query to find data size in column

I have a column with a RawDatadata type name Imagein my table. I need to find all rows that are larger than 1 MB.

It would be great if someone helped me with this question. I am using SQL Server 2008.

Thanks in advance

+3
source share
1 answer
SELECT * FROM tbl WHERE DATALENGTH(RawData) > 1048576
+8
source

All Articles