I have a database to which I upload files (such as PDFs, images, etc). I save these to the database as Varbinary (max).
I upload these files using C# MVC. What I was wondering is how can I view these files using a T-SQL query, not .net.
Is this possible?
Not directly.
Why don’t you write a simple viewer application?
There are free and commercial ones out there. I haven’t used this one, but it does have a trial version: SQL Image Viewer