Ver Mensaje Individual
  #2  
Antiguo 03-08-2005
Avatar de Rufus
Rufus Rufus is offline
Miembro
 
Registrado: may 2004
Ubicación: Canarias
Posts: 193
Reputación: 21
Rufus Va por buen camino
En la ayuda de FIBPlus dice:
Cita:
You can use dataset methods to generate all or selected SQL statements.
The dataset must be open before calling these methods. The GenerateSQLs procedure
generates and fills all SQL properties — InsertSQL,UpdateSQL, DeleteSQL, and
RefreshSQL. Before you should provide the SelectSQL property. You also
should set the UpdateTableName or the KeyFields sub-property of the
AutoUpdateOptions property.
Entonces, siguiendo esto tu codgo quedaría así:
Código SQL [-]
DataSet1.SelectSQL.Clear;
DataSet1.SelectSQL.Add('SELECT * FROM COUNTRY');
DataSet1.AutoUpdateOptions.UpdateTableName := 'COUNTRY';
DataSet1.Open;
DataSet1.GenerateSQLs;
Pruebalo. Funciona.
__________________
Milo
Responder Con Cita