On Wed, 4 Nov 2009, Vincent Snijders wrote:
ik schreef:
When Insert data, and I post it, even thou I'm doing:
ApplyUpdates?
Transaction.Commit;
It does not exists on the database itself. and when I close the connection
and reopen it, the new values does not exists.
I might be missing something here...
Like Vincent said: If you use
Dataset.Insert;
// Set field values here
Dataset.Post;
Then you need 2 more statements:
Dataset.ApplyUpdates; // this will execute the necessary update
statements on the database.
Dataset.Transaction.Commit; // or better yet, CommitRetaining.
To actually update the database.
Michael.
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus