Ver Mensaje Individual
  #5  
Antiguo 06-12-2007
Avatar de jachguate
jachguate jachguate is offline
Miembro
 
Registrado: may 2003
Ubicación: Guatemala
Posts: 6.254
Reputación: 30
jachguate Va por buen camino
Si queres hacerlo por código, te comento que los componentes Query solamente envían una instrucción al servidor.

Lo que te tocaría es enviar al servidor sentencia por sentencia, suponiendo que todas las instrucciones generadas están en una sola línea, es sencillo:

Código Delphi [-]
var
  Insrucciones: TStringList;
begin
  Instrucciones := TStringList.Create();
  try
    Instrucciones.Read
    for I:= 0 to Instrucciones.Count - 1 do
    begin
      Query1.SQL.Text := Instrucciones[i];
      Query1.ExecSQL;
    end;
  finally
    Instrucciones.Free;
  end;

Hasta luego.

__________________
Juan Antonio Castillo Hernández (jachguate)
Guía de Estilo | Etiqueta CODE | Búsca antes de preguntar | blog de jachguate
Responder Con Cita