Solved

insertion of blob

Posted on 2013-06-19
2
306 Views
Last Modified: 2013-06-21
hi guys.

do you know how to get/read blob values from one database and insert it in another database!

I have an application which had a feature not working saying that the blobs are missing.

On inspecting the relevant database table, the blob value are null which should be present in normal circumstances.

how can i read blobs from another normal database and insert it here.

I checked the normal working database and it does not show any binary value but just shows a text "BLOB".

regards
0
Comment
Question by:AmmarDJ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
John Claes earned 500 total points
ID: 39259642
Blob values are saved outside the record. this enables the size of the Blob-fields.

are both databases connected?
if so you can use a update select query

if not
can they be connected?
if so please do so and see above

if not.
the I'm afraid you'll have to make a full backup and restore the backuped database upon the target Machine using an other name and then use a update insert query
0
 

Author Comment

by:AmmarDJ
ID: 39260495
both databases are not connected.

The database with missing blobs is a watcom backup.

what kind of insert statement i would use in the backup with missing blobs because the blobs are binary values.

Should i use the select statement on the normal working database and then insert the blob values retrieved from the select statement on the backup with missing blobs.
0

Featured Post

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Query (lookup) 8 65
VMware PVSCSI SQL Server 2016 AlwaysOn 2 37
When are cursors useful? 8 62
Enable TLS 1.2 for SQL 2012 Web Edition 1 25
In this article I will describe the Backup & Restore 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.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

751 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