Enumerates a list of current locks on the database.
备注
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。
重载列表
| 名称 | Description | 
|---|---|
| Database.EnumLocks () | 
Enumerates a list of all current locks held on the database.
 | 
| Database.EnumLocks (Int32) | 
Enumerates a list of current locks held on the database for a specified system process ID.
 | 
请参阅
参考
Database Class
Database Members
Microsoft.SqlServer.Management.Smo Namespace
其他资源
How to: Use an Enumeration Method that Returns a DataTable Object in Visual Basic .NET
How to: Create, Alter, and Remove a Database in Visual Basic .NET
sys.syslockinfo (Transact-SQL)
Creating, Altering, and Removing Databases
CREATE DATABASE (Transact-SQL)