We help IT Professionals succeed at work.
Get Started

Returning filesystem files through SQL Server BLOBs?

Last Modified: 2012-07-12
Hello boys and girls. First of all, it's important that any suggested solution should work at the very least on SQL Server 2005.

What I need to do seems very simple, but I somehow don't think it is.

What I need is a NATIVE SQL SERVER SOLUTION to this problem. I CAN, however, use things like xp_cmdshell - that is fine

The problem is that I need SQL Server to basically do something like

  INTO SomeTable
... well, there's my problem. How do I do this? I know that the data is stored in a document somewhere on the server, in location P:\SomePath\SomeDocument.ext

So what I need SQL Server to do is retrieve that data from WITHIN an SP, BLOBify it, and store it into SomeTable

any ideas? Any examples I can find online seem to focus on doing the writing to the BLOB bit from within a calling program. That's not going to cut the mustard ...
Watch Question
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE