Hi everyone =). I'm new to lazarus.
I connected a Firebird Database with the native components. It all seems to work quite good, except, that I can only do Select Queries.. It's like its ignoring my Insert Into ie. Queries.
Here's the code I'm using to insert Data:
procedure TForm1.Button4Click(Sender: TObject);
var
mysqlquery : TSQLQuery;
mytransaction : TSQLTransaction;
begin
mysqlquery := TSQLQuery.Create(Form1);
mytransaction := TSQLTRansaction.Create(Form1);
mytransaction.DataBase := IBConnection1;
mytransaction.Active := TRUE;
mysqlquery.ReadOnly := FALSE;
with mysqlquery do
begin
Database := IBConnection1;
Transaction := mytransaction;
SQL.Text:= 'INSERT INTO KUNDEN (KUNDENID, VORNAME, NACHNAME) VALUES (1526,''VORNAME'',''NACHNAME'')';
ExecSQL;
Close;
end;
mysqlquery.free;
mytransaction.Free;
end;
Hope that you can help me.
caused