What’s the easiest way to preview data from an image column?

后端 未结 6 1868
不知归路
不知归路 2020-12-14 08:59

I have some columns with image data type and I want to preview (or browse) the data in those tables. When I use Select top 1000 rows in SQL Server

6条回答
  •  孤街浪徒
    2020-12-14 09:15

    The image type isn't for storing images, it's just 'variable-length binary data'. This type is deprecated and you should now use varbinary(max) for variable length binary data.

    Since the SQL Server has no knowledge of what type of binary data has been stored (.zip, .exe, .jpg, .anything) it's not surprising Management Studio doesn't provide a preview.

    You definitely can't preview these data types in Managment Studio, but I like the solution given by @RTomas.

提交回复
热议问题