Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Oracle BLOB to SQL Server 2000 ntext


Oracle BLOB to SQL Server 2000 ntext

Author
Message
david.buncle
david.buncle
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 62
Hi.
I'm wondering how I go about importing data from an Oracle BLOB (holds XML) into a SQL Server 2000 field of type ntext. When I import the data normally (using Import wizard), the data is transferred across but it is in a compressed form as seen below.

1F8B0800000000000000ED5C5D73E23816FD2B2EF675011B082153842EE298C026030CD0DD354F29B52
D40D5C6F2487636D987FDED732519B08D491C4CC2CC2EA914C1B26C5DDD73EE87AEE5B44DC4B0F584BD6
0827DCA82CAC4BAD39E57AEC7AF4B21F37E59BA9765CA16BF3CD54B1A74622F650FADF075A947D9EA31F
41D14


Is there a way to decompress/transform this data when copying it across to SQL Server? Or, alternatively, running a procedure to convert or decompress it at the SQL Server end? Hence the desired data to be stored in the table would be my actual xml. Keeping in mind that I'm using SQL Server 2000.

Regards,
Dav
afrazier-794137
afrazier-794137
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 44
I am trying to do something very similar... except I'm using SQL 2005. I have successfully migrated the BLOB to Varbinary(MAX). I too see that same hex pattern when using T-SQL to view the data on SQL 2005 and have been trying to make use of this migrated data. So, I'd appreciate any knowledge on this that others' might be willing to share.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search