Hola hgiacobone,
para lanzar la instrucción SQL uso un componente TADOCommand. La rutina que uso es la siguiente:
Código:
Código Delphi
[-]
Procedure ...
varcSQL: String;
...
Begin.....
TryMyAdoCommand.Connection := MyAdoConnection;
MyAdoConnection.BeginTrans;
cSQL := 'INSERT INTO {Tabla} ' +
'SELECT * FROM {TablaDBF} ' +
'IN ' + #39 + + #39 + ' ' +
#39 + 'dBASE IV;' + #39;
MyAdoCommand.CommandText := cSQL;
MyAdoCommand.Execute;
MyAdoConnection.CommitTrans;
ExceptMyAdoConnection.RollbackTrans;
end;
....
end;
La tabla dentro de Access tiene que existir previamente y tener la misma estructura.
Un saludo.