Microsoft SQL Server uses locking to ensure the integrity of transactions and consistency in the database. Locking prevents data that users are reading from being changed by other users, and prevents multiple users from simultaneously changing the same data. If locking is not used, data within a database may become incorrect, and queries executed against that data may produce unexpected or invalid results. SQL Server automatically applies locks. However, you can make your applications more efficient by customizing or minimizing database locking. The SQL Server Locks object provides information about locks that are applied to individual resource types. Locks are held on SQL Server resources such as rows read or rows that were modified during a transaction, and prevent the concurrent use of a resource by multiple transactions. SQL Server can lock the following resources:
SQL Server locks resources using the following resource lock modes:
Schema stability (Sch-S) locks are used when compiling queries and do not block any transactional locks, including exclusive (X) locks. Other transactions can continue to run while a query is being compiled, including transactions with exclusive (X) locks on a table. However, DDL operations cannot be performed on the table. |
Running up.time with an MS SQL Server database | Rating | Views | |
---|---|---|---|
The up.time DataStore can run on a MS SQL Server database to leverage existing SQL Server installations and take advantage of SQL Server's advanced replication, recovery and archiving options. By: uptime Support | Date Created: 7-10-2006 | Last Modified: 6-19-2014 | Index: 087 |
10258 |
Configuring SQL Server Ports | Rating | Views | |
---|---|---|---|
This article explains how to configure static and dynamic SQL Server ports. By: uptime Support | Date Created: 7-11-2007 | Last Modified: 6-28-2011 | Index: 193 |
8724 |
SQL Server Advanced Metrics | Rating | Views | |
---|---|---|---|
This article outlines the performance metrics that the up.time SQL Server Advanced Metrics monitor collects from a SQL Server database. By: uptime Support | Date Created: 1-23-2007 | Last Modified: 1-3-2012 | Index: 122 |
5691 |
SQL Server DataStore historical data purge script | Rating | Views | |
---|---|---|---|
This script will purge old data from your SQL Server DataStore By: uptime Support | Date Created: 8-12-2010 | Last Modified: 6-8-2011 | Index: 476 |
5134 |
Verifying the Configuration of SQL Server Ports | Rating | Views | |
---|---|---|---|
By: uptime Support | Date Created: 7-17-2007 | Last Modified: 6-28-2011 | Index: 195 |
11042 |