Re: Sharing an ADO connection object between two processes ?




"Herby" <prmarjoram@xxxxxxxxx> wrote in message
news:1159787801.059081.89760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
We have a client and server application that run on the same machine.
We want both to participate in the same transaction.

To acheive this I understand they need to share the same connection
object.

The server currently supports a COM interface, as the client passes
across copies of simple data types Strings and integers etc.

But now they want to pass across the client ADO connection object. The
data-writes within the server should then use this connection object
for creating its recordsets etc.

On return to the client - the client may then decide to commit or
rollback via the same connection object.

I understand the server would have a proxy back to the actual
connection object residing in the client address space. Is this going
to work?

Yes, it should work.... as long as the client and server run under the same
security context (ie. that they run as the same user).

It is very unusual to pass ADO connection objects across process boundaries.
I think a better way of managing transactions in this environment is to use
COM+. Develop an object (or objects) that house the particular transaction
logic and install it into COM+. The client then instantiates this object,
populates it with data, and then passes the interface to the server for
updating the database. Upon return the client can call one of the objects
methods to vote on the transaction.

HTH

Brian


.



Relevant Pages

  • Re: Is there an obvious way to do this in python?
    ... |> I want to write a small system that is transaction based. ... Yes - if you do the whole job on the server - ... |it) and HTML (but there are some python packages that knows how to build ... again - centric thinking - I really would like to change the bits on the client, ...
    (comp.lang.python)
  • Re: How can implement these simple scenario
    ... > Client X wants specific data be download to use/modify offline. ... > changes will then be merged back with the server. ... transactional replication or merge. ... > How do I poll the merge agent on the client to know how many transaction ...
    (microsoft.public.sqlserver.replication)
  • Re: Sharing a ADO connection between two processes - Can it be done ?
    ... server to remain seperate executables. ... they share a common data access layer which resides in its own DLL. ... the same transaction with the client is only if the server was written ...
    (microsoft.public.vb.database.ado)
  • Re: Is there an obvious way to do this in python?
    ... What I mean by this is that the server does stuff that I think belongs on the ... like getting involved in the nitty gritty of what the client should display - ... transaction is completed - like in a banking system, ... | You'd find that the python frameworks, ...
    (comp.lang.python)
  • Re: Is there an obvious way to do this in python?
    ... |> like getting involved in the nitty gritty of what the client should ... going back to the server for data only when its needed - remember ... | clients do not have direct access to the database system, ... |> transaction is completed - like in a banking system, ...
    (comp.lang.python)