Deadlock Error from SQL Server 2000 to SQL Server 2008

  • Hi Guys,

    After migrating data from SQL Server 2000 to SQL Server 2008,when I am doing any a transaction in the table which find out more row on the database,that's gives me error.

    Transaction (Process ID 59) was deadlocked on lock resources with

    another process and has been chosen as the deadlock victim.

    Rerun the transaction.

    There are 3 trigger on the table.(Insert,Update,Delete).How can I solve this problem?

    Thanks in advance.

  • Total CPU physical and logical

    Total RAM

    Total Drives not partitions

    paste table script as well as trigger and indexes if on this table

    select st.text,sp.* from sys.sysprocesses sp

    cross apply sys.dm_exec_sql_text(sp.sql_handle) st

    where sp.cpu > 100

    order by sp.cpu desc

    paste the result of this query when performance going down

    Regards,

    Syed Jahanzaib Bin Hassan

    MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA

    My Blog

    http://www.aureus-salah.com

    Regards,
    Syed Jahanzaib Bin Hassan
    BSCS | MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA

    My Blog
    www.aureus-salah.com

  • Selahattin SADOGLU (4/21/2011)


    Hi Guys,

    After migrating data from SQL Server 2000 to SQL Server 2008,when I am doing any a transaction in the table which find out more row on the database,that's gives me error.

    Transaction (Process ID 59) was deadlocked on lock resources with

    another process and has been chosen as the deadlock victim.

    Rerun the transaction.

    There are 3 trigger on the table.(Insert,Update,Delete).How can I solve this problem?

    Thanks in advance.

    Finding the root cause of deadlocks is a complicated topic...and a system that is running fine can suddenly start experiencing deadlocks after a hardware upgrade, or after making any slight change to the system, which is one reason they can be very hard to detect and fix. One thing we now have in SQL 2008 that we did not have in SQL 2000 are Extended Events. This allows us to retrieve the Deadlock Graph for all deadlocks, even after they occur. Examining Deadlock Graphs is one way to determine which processes were involved in the deadlock and what SQL was being run on each. That is where I would start. Here is a good article on the topic: http://www.sqlservercentral.com/articles/deadlock/65658/[/url]

    If you post again and attach your Deadlock Graphs we can take a look and try to help determine which pieces of code are creating the issue, and maybe how to fix it.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • Syed Jahanzaib Bin hassan (4/21/2011)


    Total CPU physical and logical

    Total RAM

    Total Drives not partitions

    paste table script as well as trigger and indexes if on this table

    select st.text,sp.* from sys.sysprocesses sp

    cross apply sys.dm_exec_sql_text(sp.sql_handle) st

    where sp.cpu > 100

    order by sp.cpu desc

    paste the result of this query when performance going down

    Regards,

    Syed Jahanzaib Bin Hassan

    MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA

    My Blog

    http://www.aureus-salah.com[/quote%5D

    Hi,

    The result of query -->> https://docs.google.com/viewer?a=v&pid=gmail&attid=0.1&thid=12f90845af09f0a2&mt=application/vnd.ms-excel&url=https://mail.google.com/mail/?ui%3D2%26ik%3D6bace9d888%26view%3Datt%26th%3D12f90845af09f0a2%26attid%3D0.1%26disp%3Dattd%26zw&sig=AHIEtbR5_kVtqyU1DPAN2ISsjdhriHx1GA

    Thanks in advance.

  • Enable TRACE FLAG 1222 . This will output the deadlock trace to SQL Server log file.

    Try to understand why it occured.

    http://msdn.microsoft.com/en-us/library/ms178104.aspx

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply