SQL Server 2005 locks out users

  • We are using a dedicated 2005 server. When I ran a query that was taking awhile to complete (over an hour), no other users could get into the system through management studio.

    This seems like strange, bizarre behavior for the server.

    Any suggestions as to why this may be occurring?

    Only 1 user running 1 query (all other users locked out).

  • Poorly written query performing multiple cross-joins?

    Jeffrey Williams
    Problems are opportunities brilliantly disguised as insurmountable obstacles.

    How to post questions to get better answers faster
    Managing Transaction Logs

  • There is not a whole lot to go on here. What edition of SQL 2005 is installed on the server? What kind of locks are there when other users cannot access SSMS? Does the log show any information?

    Joie Andrew
    "Since 1982"

  • When you say no other users could get in do you mean they couldn't connect, or they were locked out of a table or DB and couldn't function?

    It might help if you posted the query.

    The server's memory and SQL Server's max memory configuration might be useful to see too.

    ~Craig

  • Even if it was poorly written, that would lock others out? One query can shut down the entire server?

    I've had better performance results in Microsoft Access (with more data records).

  • They couldn't connect.

  • post your max server memory settings from SQL and also post your available memory at the OS level.

    Is SQL the only thing running on the machine?

    Oh, and your allocated disk space and available disk space

  • lallen-661487 (2/3/2010)


    Even if it was poorly written, that would lock others out? One query can shut down the entire server?

    I've had better performance results in Microsoft Access (with more data records).

    Yes it could. It really depends on what the query was. It also depends on the transaction isolation level. It could also depend on if an explicit transaction was started and the commit was never reached. You are looking at lock escalation and this can sometimes cause a timeout to occur when trying to expand objects from SSMS or even login to a server through SSMS. Access doesn't have the same locking mechanisms in place and thus the data is not as well protected there.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • SQLBOT (2/3/2010)


    post your max server memory settings from SQL and also post your available memory at the OS level.

    Is SQL the only thing running on the machine?

    Oh, and your allocated disk space and available disk space

    Also, post your query and execution plan. Those will also be very helpful in troubleshooting this issue.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

Viewing 9 posts - 1 through 8 (of 8 total)

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