Automatic Rollback

Discussion in 'microsoft.public.sqlserver.ce' started by Mobile Application Developer (MAD), Aug 18, 2009.

  1. Hi,
    when I create Database programmatically from, C#, is there a way to setup
    automatic rollback on any errors?
     
    Mobile Application Developer (MAD), Aug 18, 2009
    #1
    1. Advertisements

  2. Mobile Application Developer (MAD)

    ErikEJ Guest

    Yes, wrap the used SqlCeCommand objects in a SqlCeTransaction, that you can
    commit or rollback as required.
     
    ErikEJ, Aug 18, 2009
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.