Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Oracle BLOB to SQL Server 2000 ntext Expand / Collapse
Author
Message
Posted Thursday, April 3, 2008 8:28 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, May 11, 2009 3:40 AM
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
Post #479255
Posted Monday, November 29, 2010 12:33 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, August 21, 2014 1:22 PM
Points: 4, Visits: 31
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.
Post #1027549
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse