Transfer from BLOB Text to MSSQL

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kcr55892
Posts: 1
Joined: Mon 30 Jul 2007 04:40

Transfer from BLOB Text to MSSQL

Post by kcr55892 » Mon 30 Jul 2007 04:44

i need help to transfer data from BLOB (TEXT) into MS-SQL

the source will be table Customer1, Name(varchar), Code(varchar), Remarks(BLOB SUB_TYPE TEXT SEGMENT SIZE 80)

to

the destination table Customer2, Name(Varchar), code(varchar), remarks(varchar)


i try to use the code below

Dim cn As New ADODB.Connection
Dim cn2 As New ADODB.Connection
Dim rs As New ADODB.Recordset

rs.Open "Select CODE,NAME,REMARKS from Customer1", cn, adOpenForwardOnly, adLockReadOnly

cn2.Execute "Insert into Customer2 (Code,Name,Remarks) Values ('" & rs("Code") & "','" & Replace(rs("Name") & "", "'", "''") & "','" & rs("REMARKS") & "')"


transfering field Code and Name are successful, but Remarks is not succesful where i get the unrecognized character inside my destination field.
any suggestion? is it database limitation?


i am using InterBase 6 Open Edition, IBConsole Version 1 as source and Microsoft SQL Server 2005 as destination.


very urgent n thanks in advance

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Mon 30 Jul 2007 06:50

Please note that this forum is dedicated to IBDAC components, not to the InterBase\Firebird servers or any other data providers. As far as I can see you are using Visual Basic that isn't supported by IBDAC. Please send your questions to your data access components vendor.

Post Reply