473,382 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

migrate DB2 table to MS SQL server with GIF fields

I have to migrate database from AIX DB2 to MS Sql Server 2000. In one
table there is field with GIF image. I have tried with "Import/Export
Data" wizard on SQL server to import that table. All other fields are
successfully migrated except for that field with gif image (I get only
"GIF89A" as value in that field on MS SQL). Also, "Import/Export Data"
wizard on SQL server "sees" that field as LONG VARCHAR???? (isn't this
supposed to be some kind of BLOB field?). I'm using DB2 ODBC driver on
SQL server to connect on DB2 server.

Does anybody know some other way to migrate that type of data?

Tnx.
Nov 12 '05 #1
1 4543

"Davor" <kr**@mail.inet.hr> wrote in message
news:cf**********@sunce.iskon.hr...
I have to migrate database from AIX DB2 to MS Sql Server 2000. In one
table there is field with GIF image. I have tried with "Import/Export
Data" wizard on SQL server to import that table. All other fields are
successfully migrated except for that field with gif image (I get only
"GIF89A" as value in that field on MS SQL). Also, "Import/Export Data"
wizard on SQL server "sees" that field as LONG VARCHAR???? (isn't this
supposed to be some kind of BLOB field?). I'm using DB2 ODBC driver on
SQL server to connect on DB2 server.
Which version of DB2 are you running? V7.2? V8.1?

What is the DB2 datatype of the column containing the GIF? It *should* be a
BLOB if it contains a GIF; that's the only appropriate datatype for binary
data like a GIF.

Perhaps the GIFs were never properly stored in the first place. Can your
applications read and display the GIFs properly from the DB2 table?

I played with MS SQL briefly last year but don't recall if it supports BLOBs
or what it calls the BLOB datatype. As for the Import/Export Data Wizard on
SQL Server, I've never used it and don't know how it determines the datatype
of the field. I don't know it's reputation either: solid and reliable or
buggy and unreliable. You might try asking about its reliability on a MS SQL
newsgroup; perhaps the MS SQL code needs a fixpack??
Does anybody know some other way to migrate that type of data?

If nothing else works, you could migrate everything but the GIF column, then
insert each of the GIFs one at a time via an application you write yourself.
It's not the ideal option but it *might* work.

Rhino
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Phil Powell | last post by:
I've read some online resources that utilize various MySQL command-line actions to migrate data from Access to MySQL. The situation is this: a group of co-workers of mine will be using an Access...
1
by: PT | last post by:
I got a problem. And thats..... First of all, I got these three tables. ------------------- ------------------ ---------------------- tblPerson tblPersonSoftware ...
4
by: Richard Holliingsworth | last post by:
Hello: I have an Access 2K form I built from a SQL Server 7.0 view. I want to lock certain fields in the database from users so they can see them on the views and forms, but NOT be able to edit...
4
by: Bon | last post by:
Hello all Would it be possible to migrate the MS Access 2000 to MS SQL Server 2000? My application is using MS Access 2000 as database and as user interface such as forms. Now, I want to...
0
by: Gee | last post by:
To migrate the VSAM files to SQL server 2000 I need to load 'OLE DB provider for AS/400 and VSAM'. To load the provider I've to install Host Integration Server. But the cost is too high. Please...
2
by: clickon | last post by:
I am confused about the way in which asp:table objects work. When a control is within an asp table it generally appears to be in the scope of the tables parent control. E.g. if i have a page that...
6
by: polocar | last post by:
Hi, I'm writing a program in Visual C# 2005 Professional Edition. This program connects to a SQL Server 2005 database called "Generations" (in which there is only one table, called...
0
by: phpmaet | last post by:
hi I have migrated the Access 2003 database to Oracle 10g database by Oracle work bench. Actually i am using the platform is Microsoft Windows Server 2003 for migaration. and i have...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.