Causing a timeout error

  • What if I create a transaction on the table and leave it uncommitted, will this cause a timeout in the script when trying to connect? If so, will this only lock up the table, not the entire database?

  • ram302 (10/20/2016)


    What if I create a transaction on the table and leave it uncommitted, will this cause a timeout in the script when trying to connect?

    No. That'll just leave a lock on the table. You might end up getting a command timeout when running queries against that table from an app, but not a connection timeout (timeout connecting to the DB)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 3 (of 3 total)

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