Solved

Export documents uploaded inside Database

Posted on 2014-11-16
4
115 Views
Last Modified: 2014-11-17
Using:  MS SQL and IIS7

I am importing data from one database to another.

System # 1 has documents uploaded inside the database. I am not familiar on how this is done and how to export them to be actual documents again (Like a word document or an excel file, or PDF)

System # 2 has a path to where the physical documents are stored (The actual word, excel or PDF file).

I need to export all documents from System # 1 to System # 2.

How can I export all those documents to a folder and convert them from what looks like a Blob in the table to actual files ?
0
Comment
Question by:amucinobluedot
  • 2
4 Comments
 
LVL 13

Assisted Solution

by:sameer2010
sameer2010 earned 250 total points
ID: 40446714
Hi,

This can be easily achieved if ext for file is known, using BCP. Are you storing ext somewhere?

Thanks,
Sam
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 40446998
Can you post there the schema from the tables so you can see how those files are stored (which data type are used)?
0
 

Author Comment

by:amucinobluedot
ID: 40447882
There is a table with the name of the document in one field and the extension of the document in another. As it turns out the documents are stored on a folder and not the database itself. Ill close this thread, thanks for the help.
0
 

Author Closing Comment

by:amucinobluedot
ID: 40447887
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now