Ver Mensaje Individual
  #2  
Antiguo 14-06-2007
Avatar de ContraVeneno
ContraVeneno ContraVeneno is offline
Miembro
 
Registrado: may 2005
Ubicación: Torreón, México
Posts: 4.740
Reputación: 26
ContraVeneno Va por buen camino
Código Delphi [-]
with qrySiteListGSN do begin
 if active then close;
 SQL.Clear;
 SQL.Add('SELECT S.Customer, S.Network, S.Node');
 SQL.Add('FROM SitelistNoAXE S');
 SQL.Add('WHERE S.Node Like ''*GSN*'' ');
 Open;
end; //with

La ventaja de usar SQL.Add, en lugar de SQL.Text, es que si utilizas .Text y tienes algún error, este siempre te dirá que tienes un error en la línea 1.

En cambio, al utilizar SQL.Add, te dirá exactamente en que línea tienes el error.
__________________


Última edición por ContraVeneno fecha: 14-06-2007 a las 16:39:31.
Responder Con Cita