SQL SERVER 2000 Deadlock issues

Last post 02-02-2009 5:28 AM by satya. 7 replies.
Page 1 of 1 (8 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 10-16-2007 2:39 PM

    SQL SERVER 2000 Deadlock issues

    We are using SQL Server 2000. In production we are facing deadlock problems.

    If we try to run a trace then users starts complaining that there are not

    able to get into the application. What do you think are the options that we

    have to trace down deadlock issues?

    We have hundreds of stored procedures, triggers.

    So, we do not know from where it is coming and why?

    If we use the flags:

    DBCC TRACEON (3604)

    DBCC TRACEON (1204

    Will that impact performance of SQL Server 2000? Is using flags same

    As using trace in profiler.

    I would really appreciate your help.

  • 10-16-2007 3:19 PM In reply to

    • thomas
    • Top 25 Contributor
    • Joined on 11-15-2002
    • United Kingdom
    • Posts 1,275

    Re: SQL SERVER 2000 Deadlock issues

    Running those trace flags (as startup parameters), will not impact your users or your application. This will print deadlock information in the sql server error log. This information will be very valuable for you in troubleshooting the deadlocks.

    Deadlocks are very difficult to sort out, I am grappling with some of my own right at the moment.

    Useful links:-

    http://www.sqlservercentral.com/articles/Performance+Tuning+and+Scaling/tracingdeadlocks/1324/

    http://msdn2.microsoft.com/en-us/library/aa937573(SQL.80).aspx

  • 10-17-2007 3:32 PM In reply to

    Re: SQL SERVER 2000 Deadlock issues

    thanks for the help. So turning the trace files on will not have any impact on performance.

    I read some where that it may slow down database.

  • 10-17-2007 6:28 PM In reply to

    • Greg Larsen
    • Top 75 Contributor
    • Joined on 10-02-2007
    • Tumwater, Washington, USA
    • Posts 253

    Re: SQL SERVER 2000 Deadlock issues

    There is some overhead, but it is minimal.  Do not monitor for every possible event, be selective in what you monitor.

    For SQL Server Examples and SQL Server DBA Dashboard tool go to --http://www.sqlserverexamples.com

    Greg Larsen, SQL MVP
  • 10-18-2007 6:11 AM In reply to

    Re: SQL SERVER 2000 Deadlock issues

    Hi,

    Today our production server was hanged cos.....the number of current users was increasing and it was around 300+, but in normal case the number of users are around 30-35, I open the server through VNC and then tried to connect it through enterpirse manager and query analyzer but it gave network error it was something like

    "Microsoft SQL server network error : check your network document"

    I was physically working on the production server. I checked the services all were running fine I tried it for 10 mins but when I failed. I restarted both the Sql server and Sql server agent services and after that everything was fine and when I connected through enterprise manager their were around 10 process in the current activity that were showing as blocked by some other process, I manually killed those processes and everything was fine but my question is like how can I know the reason for this, so that I can take preventive measures to avoid it in future. This thing happened last months also and it people restarted the server and everything was fine.

    Can anybody help in in this regard?

    Thank You,

    Rohit Paliwal

    Ram
    MCDBA
    View Rohit Paliwal's profile on LinkedIn
  • 10-31-2007 11:56 AM In reply to

    • dilan
    • Not Ranked
    • Joined on 01-10-2007
    • Posts 21

    Re: SQL SERVER 2000 Deadlock issues

    Please post this as a separate topic.

     Sounds like the SQL server was not listening on the expected ports. One thing you can try in this situation is to telnet to <sqlserver> port 1433 (or whatever port is configured in SQL server) and see if you can make a successful connection and work you way up such as telnet from within your VNC connection to port 1433 etc..

     

    Dilan

  • 02-01-2009 2:01 PM In reply to

    Re: SQL SERVER 2000 Deadlock issues

    Have you tried by tracing on the flags with numbers 1204 and 3605.

     dbcc traceon(1204,1)

    dbcc traceon(3605,1)

    After placing the trace, restart the server and check for error log to idenctify the server process id to kill it.

    Dont kill all the resources or process. Instead, killing specific process may resolve your problem.

     

    Regards,

    Venkatesan Prabu .J

    Venkatesan Prabu.
    Microsoft MVP.
    http://venkattechnicalblog.blogspot.com/
  • 02-02-2009 5:28 AM In reply to

    • satya
    • Top 10 Contributor
    • Joined on 11-05-2002
    • United Kingdom
    • Posts 23,977
    • Microsoft MVP
      Moderator

    Re: SQL SERVER 2000 Deadlock issues

    -Satya S K J

    SQL Server MVP

    View Satya Shyam K Jayanty's profile on LinkedIn &
    Knowledge is Power, you will gain by sharing it. SSQA.net - Invisible contributions to the users & visible success in SQL Community.

    SqlServer-QA.net (SSQA.net)<

    ↑ Grab this Headline Animator

Page 1 of 1 (8 items)
Active Topics   My Discussions    Unanswered Posts


.© 2010 Jude O'Kelly All Rights Reserved.