Results 1 to 3 of 3

Thread: Confirmation

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    13
    When inserting records in a remote database(over the Internet), how can I make sure that all the records have been inserted? The entire operation should happen as a transaction. Pl. advice. Thanks
    N.M.

  2. #2
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    What database are you using. If SQL server retrieve @@error for last action i.e. updates or inserts, or perhaps use the MTS objectContext() mechanism to control transactions.

    Lenin.

  3. #3
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    If you intend to work with SQL Server or Oracle, both these support the use of transactions. You can issue a Begin Transaction command in the beginning, before any data updations start. Once all updations and insertions are over, issue a Commit Transaction command which will ensure that all the changes are physically written to the database.

    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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