Ado, Threads (and videotape)

From: Josu Z. (josu_at_leako.com)
Date: 03/16/05

  • Next message: Guillem: "Re: Ado, Threads (and videotape)"
    Date: Wed, 16 Mar 2005 12:14:20 +0100
    
    

    Ado, Threads (and videotape)

    The idea is this.

    I have an object whose properties can be written and read form different
    threads.

    I protect the attributes with a TMultiReadExclusiveWriteSynchronizer.

    The thing is that i want some of these attributes be persistent in a Access
    BD (using ADO). I would like the object to write in the BD, within the
    SetValue functions of his properties.

    But doing this, I write in the BD within the context of the threads, and any
    of the thread should have his own ADOConnection. Shouldn't it?

    So How could I use those different ADOConnection within the SetValue of the
    property??? Any ideas ???

    I have this working with one ADOConnection and using transactions, but don't
    seems to be the better way

    thanksssss


  • Next message: Guillem: "Re: Ado, Threads (and videotape)"

    Relevant Pages

    • Re: account created attribute in AD
      ... You can use ADO in a VBScript program. ... Dim strBase, strFilter, strAttributes, strQuery, adoRecordset ... Set adoConnection = CreateObject ... ' Construct the LDAP query. ...
      (microsoft.public.windows.server.active_directory)
    • Re: using SQLserver, ADO, Delphi: performance issue
      ... > We intelinked an ADOconnection, ... > When the requested display is not indexed, we see the first 20 records ... ADO is not the root ... Your code is (or the Delphi control is). ...
      (microsoft.public.sqlserver.programming)
    • Delphi 7 support for ADO 2.7 ?
      ... fine retrieving XML from MS SQL server. ... ADO components provided by borland. ... I may be able to use the 2.7 ADOConnection that was imported and get the ... standard components to connect via the new 2.7 ADOConnection - would this ...
      (borland.public.delphi.database.ado)