Page 1 of 1

AssignConnect

Posted: Thu 19 Nov 2009 03:14
by cxg417
if MSSQL then
begin
DestConnection.AssignConnect(SourceConnection);
DestConnection.Open;
UniQuery.Close;
UniQuery.Connection:= DestConnection;
UniQuery.Open; -->>"OK"
end;

if ASE then
begin
DestConnection.AssignConnect(SourceConnection);
DestConnection.Open;
UniQuery.Close;
UniQuery.Connection:= DestConnection;
UniQuery.Open; -->>"Error"
end;
________
Toyota g1 specifications

Posted: Thu 19 Nov 2009 08:41
by Plash
We have fixed this problem. The fix will be included in the next build of UniDAC.

Posted: Fri 20 Nov 2009 12:16
by cxg417
if MSSQL then
begin
DestConnection.AssignConnect(SourceConnection);
DestConnection.Open;
UniQuery.Close;
UniQuery.Connection:= DestConnection;
UniQuery.Open;
UniQuery.Edit;
UniQuery.FieldByName('sField1').AsString:= 'ABC';
UniQuery.Post;
DestConnection.StartTransaction
try
UniQuery.ApplyUpdates; -->>Error:"Invalid class typecast"
DestConnection.Commit;
UniQuery.CommitUpdates;
except
UniQuery.RestoreUpdates;
DestConnection.Rollback;
end;
end;
________
Honda ballade specifications

Posted: Fri 20 Nov 2009 13:28
by Dimon
We have fixed this problem. The fix will be included in the next build of UniDAC.