View Jpg’s and other file types stored in a table

Do you have files stored in your SQL Server database and need to see what they are.  Here is a way using my favorite add-in SSMSBoost.

http://www.ssmsboost.com/

Below is the definition of a table that stores pictures.  The field Photo is a varbinary, which means it can store binary data, Zip files, Pdf’s, Excel, Word, pretty much anything.  I am trying to figure out what picture is stored in a particular row, and having SSMSBoost, I can easily right click and view the file.

v1

 

Selecting from the table, you just click into the Photo field.

v2

Right click, and choose Visualize as, then click picture.  You can see the options that are currently available, you can also add your own.  I added Zip files, but do not have any in this table.

v3

 

This then opens up the Jpg in your default program that is used for viewing that file extension.

 

v4

This is another great feature of SSMSBoost that makes your life easier.  If you want to see other great features that this add-in provides, look at my other blog post here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s