Re: Delphi6. ADO <->SQLExpress - best practice?



Pat,

See this for details.
http://technet.microsoft.com/en-us/library/ms345154.aspx

Unlike BDE and Paradox, dont use tADOTable .. it will open th whole table
which can kill you. Use tADODataset to read only the data needed for the
application. If your UI is based on a primary "browse", as many are, you
will have to change that to work with a more finite number of records at a
time.

With a 1 GB buffer memory limit, i would steer away from stored procs if you
can .. although I admit that this is just a guess on my part, but probably
close to the mark.

If you use ADO recordsets, you can edit directly to the recordset. The data
can then be committed to the database "optimistically" (as it is changed),
or batchoptimistically, (changes are buffered for all records in a record
set and then committed to the database with the UpdateBatch method of
tADODataset). Just depends on the requirements of the app. Batch updating is
helpful when you have multiple reords being created and dont want to commit
to DB until all is ok .. as in a "new invoice" with multiple line items and
then the user decides .. "Oh hell, that's the wrong customer" .. You havent
done anything to the database so you can just do "cancel updates" and the
new recs disappear from the recordset.

HTH,

Del


.



Relevant Pages

  • Re: Delphi6. ADO <->SQLExpress - best practice?
    ... Unlike BDE and Paradox, dont use tADOTable .. ... can then be committed to the database "optimistically", ... helpful when you have multiple reords being created and dont want to commit ...
    (borland.public.delphi.database.ado)
  • Re: update query in DataTable??
    ... yaah i just want to commit changes to datatable in memory. ... However all this in memory. ... no final commitment to database. ... i thought of using datarow.itemarray.setvalue but then dont know how this ...
    (microsoft.public.dotnet.languages.csharp)
  • DataTable, not writing to database
    ... I want to commit all the current records in the DataTable to the ... database and requery the database so that it brings up a fresh datatable ... 'Requery Database ... I dont get any records to return because the never got ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Edward Grevilles brother-in-law, Sir Edmund Tame
    ... but I dont have access to "Burke's landed Gentry" unless ... Robert ...jie no parents shown on Leo's site. ... If you took my statement to mean this database I have is more correct, ...
    (soc.genealogy.medieval)
  • Re: Any good Project Programming resources/books?
    ... I dont think that would be the best way to tackle this because it isn't ... Oracle 9i and Sql Server 2000. ... All the database connection information ... >> about is an internal ASP.NET app. ...
    (microsoft.public.project.vba)