CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Location
    Andhra Pradesh, India
    Posts
    3

    open Mutiple Databases in a single Transaction

    In Daos and Rdo it is possible to open multiple databases on a single workspace or Environment or what ever that is. But how to open multiple Databases in ADOs. Because in ADOs one database can be opened with a connection information example:

    dim con as new adodb.connection
    con.open "provider=sqloledb.1;user id=sa;password=;initial catalog=abc;server=ntserver;



    Now when I say con.committrans the transctions on con object for abc database is saved. But can I open another database on the same connection. So that jut by saying con.committrans I must be able to commit both databases.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: open Mutiple Databases in a single Transaction

    from the MSDN documentation:
    "ADO transactions are tied to the Connection object, which limits the transaction to a single data source."
    Looks like it cannot be done directly. But, using MTS (= MS Transaction SErver) you should be able to implement it.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured