Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Transaction in dotNET and SqlServer

Transaction in dotNET and SqlServer

Scheduled Pinned Locked Moved C#
questioncsharphelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Developer611
    wrote on last edited by
    #1

    Hi there . During transaction is began , I inserted new data in table , until I don't call commit() or rollback() functions , another processes can not access to this table. I mean, if i try to add a new data in a table with transaction and before closing transaction(commit or rollback) another process can't read that table; then a exception will occurred. what is the problem?

    C L 2 Replies Last reply
    0
    • D Developer611

      Hi there . During transaction is began , I inserted new data in table , until I don't call commit() or rollback() functions , another processes can not access to this table. I mean, if i try to add a new data in a table with transaction and before closing transaction(commit or rollback) another process can't read that table; then a exception will occurred. what is the problem?

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Developer611 wrote:

      what is the problem?

      Didn't I just answer this in the SQL Forum? Would it be too much to ask that you only post the question once?


      Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... "I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless." My website

      1 Reply Last reply
      0
      • D Developer611

        Hi there . During transaction is began , I inserted new data in table , until I don't call commit() or rollback() functions , another processes can not access to this table. I mean, if i try to add a new data in a table with transaction and before closing transaction(commit or rollback) another process can't read that table; then a exception will occurred. what is the problem?

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Developer611 wrote:

        what is the problem?

        It's by design, read the sections on TransactionScope.

        **

        xacc.ide-0.2.0.77 - now with C# 3.5 support and Navigation Bar!^
        New xacc.ide release RSS feed^

        **

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups