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. Transaction deadlock crash + vb.net 2008

Transaction deadlock crash + vb.net 2008

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasesql-serversysadmin
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.
  • P Offline
    P Offline
    Pankaj Garg
    wrote on last edited by
    #1

    Hi, In am doing the simultaneouly two imports. Which export the data from excel to sql server. There are some common tables, which are being approached by both these imports. and results in deadlock Transaction (Process ID 53) was deadlocked on resources with another process and has been chosen as the deadlock victim. Rerun the transaction. In the sql profiler, i have seen that a couple of queries are taking time, which are using common tables in imports. I have optimized it also. Can you provide me any suggestion? Thanks

    K D 2 Replies Last reply
    0
    • P Pankaj Garg

      Hi, In am doing the simultaneouly two imports. Which export the data from excel to sql server. There are some common tables, which are being approached by both these imports. and results in deadlock Transaction (Process ID 53) was deadlocked on resources with another process and has been chosen as the deadlock victim. Rerun the transaction. In the sql profiler, i have seen that a couple of queries are taking time, which are using common tables in imports. I have optimized it also. Can you provide me any suggestion? Thanks

      K Offline
      K Offline
      Kschuler
      wrote on last edited by
      #2

      Um...Don't do the imports simultaneously? Do some kind of check to make sure the files not being used by another process before doing the import.

      1 Reply Last reply
      0
      • P Pankaj Garg

        Hi, In am doing the simultaneouly two imports. Which export the data from excel to sql server. There are some common tables, which are being approached by both these imports. and results in deadlock Transaction (Process ID 53) was deadlocked on resources with another process and has been chosen as the deadlock victim. Rerun the transaction. In the sql profiler, i have seen that a couple of queries are taking time, which are using common tables in imports. I have optimized it also. Can you provide me any suggestion? Thanks

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        This would tell me that you can't do the imports simultaneously since they both add/modify to the same table(s). You don't have a choice but to do them sequentially.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        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