Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Prism Exception bei grßem INSERT (https://www.delphipraxis.net/73471-exception-bei-grssem-insert.html)

xaromz 18. Jul 2006 17:01

Datenbank: MySQL • Version: 5 • Zugriff über: ADO.net, MySQL-Connector

Exception bei grßem INSERT
 
Hallo,

immer wenn ich ein INSERT Query absetze, das etwas größer ausfällt (z. B. über 1MB), bekomme ich eine Exception mit dem Fehlertext "unable to write to stream" an der angegebenen Stelle.
Delphi-Quellcode:
var
  FSQLConnection: MySqlConnection;
  Command: IDbCommand;
begin

  ...

  Command := FSQLConnection.CreateCommand;
  Command.CommandText := SQL;
  try
    Command.Prepare;
    Command.ExecuteNonQuery; // <---
  except
    on E: Exception do
    begin
      Console.WriteLine('Error: ' + E.Message);
    end;
  end;
end;
Hat jemand eine Ahnung, was das sein kann bzw. wie ich dieses Problem löse?

Gruß
xaromz


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:03 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz