在 SSMS 中查看图像?

发布于 2024-08-29 02:58:32 字数 510 浏览 4 评论 0原文

我浏览了一下,发现了这篇博文:

http://erikej.blogspot.com/2010/04/version-3-of-exportsqlce-now-available.html

(如果您使用 SQL Server CE,这是一个很好的补充。)

在那篇文章中我看到了 SSMS 的屏幕截图,结果中包含图像。
ScreenShot

这是如何完成的?我的数据库中有图像(通过内存流序列化的 PNG 文件),但当我选择图像列时,我只看到数字。

I was browsing around and found this blog post:

http://erikej.blogspot.com/2010/04/version-3-of-exportsqlce-now-available.html

(It is for a great add in if you user SQL Server CE.)

On that post I saw an screen shot of SSMS with images in the results.
ScreenShot

How is this done? I have images in my database (PNG files that are serialized via memory stream), but I just see numbers when I select the image column.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

人疚 2024-09-05 02:58:32

如果您问这是如何完成的,我不确定它是如何准确实现的。我知道您可以在 Visual Studio 中创建 ssms 插件,并且我确信有一种方法可以获取文件流对象并对其进行解码。

如果您正在寻找除了您提到的插件之外的方法来执行此操作,我使用一个很棒的免费软件插件。您可以在 http://www.ssmsboost.com 找到插件 ssmsboost 。该插件有社区版和专业版。两者唯一的区别是社区版本需要每120天更新一次。这个插件有很多不错的功能,但您需要的是

SSMS 结果网格可视化工具:

<块引用>

功能允许导出和导出查看表中的文件或大量文本或 XML 数据(例如来自 sharepoint 服务的文档存储的文件)。所需的数据应该简单地输出到 ResultsGrid。通过右键单击具有所需值的单元格并选择“可视化为->..”,您可以将数据保存到具有预定义名称的文件中,并使用自定义或默认应用程序打开它。尽管 SSMS 在将 VARBINARY/VARCHAR 字段输出到 ResultsGrid 时会截断长数据:SSMSBoost 与 SSMS 的内部存储配合使用并提取完整的单元格值。下面您可以看到 [AdventureWorks] 数据库中 [Production].[ProductPhoto] 表的 [LargePhoto] 字段中的图片是如何可视化的:

示例

If you are asking how this is done, I'm not sure how it is implemented exactly. I know that you can create ssms plugins in visual studio, and I'm sure that there is a way to take a filestream object and decode it.

If you are looking for a way for you to do this besides the plugin you mentioned, there is a great freeware plugin I use. You can find a plugin ssmsboost at http://www.ssmsboost.com. This plugin has a community version and a pro version. The only difference between the two is that the community version needs to be renewed every 120 days. This plugin has a lot of nice features, but the one you're asking for is

SSMS Results Grid Visualizers:

Feature allows to export & view files or some big amounts of text or XML data from tables (like files from document storage of sharepoint services). Required data should be simply output to ResultsGrid. By right-clicking the cell with required value and selecting "Visualize As->.." you can tell to save data to file with predefined name and open it with custom or default application. No matter than SSMS truncates long data from VARBINARY/VARCHAR fields when outputing them to ResultsGrid: SSMSBoost works with internal storage of SSMS and extracts complete cell value. Below you can see how a picture from [LargePhoto] field of [Production].[ProductPhoto] table from [AdventureWorks] database is being visualized:

example

友欢 2024-09-05 02:58:32

我想推荐免费且开源的 MiniSQLQuery 浏览器来实现此目的。
http://minisqlquery.codeplex.com/

在此处输入图像描述

I'd like to recommend the MiniSQLQuery browser that is free and opensource to achieve this.
http://minisqlquery.codeplex.com/

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文