Table Copy

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
murkay
Posts: 14
Joined: Thu 08 Aug 2013 09:18

Table Copy

Post by murkay » Thu 08 Aug 2013 09:36

I copy a table from MsAccces to MSSQLServer.
I use crbatch or uniloader.
Source is type memo destination is type varchar(5000).
When I perform copy destination table value is only first character of source value.

murkay
Posts: 14
Joined: Thu 08 Aug 2013 09:18

Re: Table Copy

Post by murkay » Thu 08 Aug 2013 10:50

When I use with Destination Connection
with DataTypeMap.Add do begin
DBType := 318;
DBLengthMin := 500;
FieldType := ftWideString;
end;
i.e.
DataTypeMap.AddDBTypeRule(318,ftWideString);
It works
Is it a good solution ?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Table Copy

Post by AlexP » Fri 09 Aug 2013 10:32

Hello,

Thank you for the information. We have reproduced and fixed the problem with cutting data when using CRBatchMove. This fix will be included to the next version. For the time being you can use Data Type Mapping

Post Reply