Oracle BLOB to SQL Server 2000 ntext

  • david.buncle

    Right there with Babe

    Points: 714

    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

    SSC Rookie

    Points: 33

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply