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. Visual Basic
  4. Concurrency control in VB.NET

Concurrency control in VB.NET

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasequestion
4 Posts 2 Posters 1 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.
  • P Offline
    P Offline
    pradipta
    wrote on last edited by
    #1

    How can i use concurrency control using vb.net.I have used sqlcommand,sqlconnection and sqldatareader(No Dataset) to access data from database in my project.And multiple user can access and modify data ,so how can i use lock and cursor to maintain consistency in database.

    J 1 Reply Last reply
    0
    • P pradipta

      How can i use concurrency control using vb.net.I have used sqlcommand,sqlconnection and sqldatareader(No Dataset) to access data from database in my project.And multiple user can access and modify data ,so how can i use lock and cursor to maintain consistency in database.

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      Transactions.

      P 1 Reply Last reply
      0
      • J John Kuhn

        Transactions.

        P Offline
        P Offline
        pradipta
        wrote on last edited by
        #3

        I will be glad to have a VB.NET code snippet to implement Concurency control when data inserted or updated on the database through command/datareader objects of VB.NET.

        J 1 Reply Last reply
        0
        • P pradipta

          I will be glad to have a VB.NET code snippet to implement Concurency control when data inserted or updated on the database through command/datareader objects of VB.NET.

          J Offline
          J Offline
          John Kuhn
          wrote on last edited by
          #4

          I apologize for the brevity of my response -- you can achieve concurrency control using transactions in ADO.NET with the SqlTransaction class (see MSDN[^] for more details). However, the following two examples might be more specific to the issue you are attempting to resolve: MSDN Data Concurrency[^] Data Concurrency Exception Handling[^]

          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