dbTalk Databases Forums  

Getting data out of a Blob Column.

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Getting data out of a Blob Column. in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sami
 
Posts: n/a

Default Getting data out of a Blob Column. - 06-22-2006 , 02:21 AM






Hello,

I am doing a Datapump from my Source Database (A) to Destination Database
(B).

I connect to my source DB A using OLEDB. Do a Select Query to read all the
data and pump it row by row to the Destination Database to which I connect
using a destination Script Component.

One of my source column is of type "ntext"
Question: In my destination Script Component I override the PreExecute
method to prepare my Insert Statement.
And then on my ProcessInputRow method I copy my source
column to the destination columns and do a cmd.ExecuteNonQuery( ).

The problem that I am having is when it comes to the
following statement:
cmd.Parameters.Item("@Description").Value = Row.Description

I get an error saying that a BlobColumn cannot be converted
to a string type.

I can see that the Row.Description is a BlobColumn but can't figure out how
to obtain my resulting column value from it?

Please help.

--
Regards,
Sami

[Remove Numbers from e-mail address to use it]


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.