Lock:Deadlock Chain 이벤트 클래스Lock:Deadlock Chain Event Class
SQL Server
Azure SQL Database
Azure Synapse Analytics(SQL DW)
병렬 데이터 웨어하우스
SQL Server
Azure SQL Database
Azure Synapse Analytics (SQL DW)
Parallel Data Warehouse
Lock:Deadlock Chain 이벤트 클래스는 교착 상태의 각 참가자에 대해 생성됩니다.The Lock:Deadlock Chain event class is produced for each participant in a deadlock.
Lock:Deadlock Chain 이벤트 클래스를 사용하여 교착 상태 조건이 발생하는 시점을 모니터링할 수 있습니다.Use the Lock:Deadlock Chain event class to monitor when deadlock conditions occur. 이 정보는 교착 상태가 애플리케이션의 성능에 큰 영향을 미치는지 여부와 어떤 개체가 관련되어 있는지 확인하는 데 유용합니다.This information is useful to determine if deadlocks are significantly affecting the performance of your application, and which objects are involved. 이러한 개체를 수정하는 애플리케이션 코드를 검사하여 교착 상태를 최소화하도록 변경될 수 있는지 확인할 수 있습니다.You can examine the application code that modifies these objects to determine if changes to minimize deadlocks can be made.
Lock:Deadlock Chain 이벤트 클래스 데이터 열Lock:Deadlock Chain Event Class Data Columns
| 데이터 열 이름Data column name | 데이터 형식Data type | DescriptionDescription | 열 IDColumn ID | 필터 가능Filterable |
|---|---|---|---|---|
| BinaryDataBinaryData | imageimage | 잠금 리소스 식별자입니다.Lock resource identifier. | 22 | yesYes |
| DatabaseIDDatabaseID | intint | 이 리소스가 속한 데이터베이스의 ID입니다.ID of the database to which this resource belongs. SQL Server ProfilerSQL Server Profiler 에 ServerName 데이터 열이 추적에서 캡처되고 서버를 사용할 수 있으면 데이터베이스 이름이 표시됩니다.displays the name of the database if the ServerName data column is captured in the trace and the server is available. DB_ID 함수를 사용하여 데이터베이스의 값을 확인할 수 있습니다.Determine the value for a database by using the DB_ID function. | 33 | yesYes |
| DatabaseNameDatabaseName | nvarcharnvarchar | 리소스가 속한 데이터베이스의 이름입니다.Name of the database to which the resource belongs. | 3535 | yesYes |
| EventClassEventClass | intint | 이벤트 유형 = 59Type of event = 59. | 2727 | 예No |
| EventSequenceEventSequence | intint | 요청 내에 지정된 이벤트 시퀀스입니다.Sequence of a given event within the request. | 5151 | 예No |
| EventSubClassEventSubClass | intint | 이벤트 하위 클래스의 유형입니다.Type of event subclass. 101=리소스 유형 잠금101=Resource type Lock 102=리소스 유형 교환102=Resource type Exchange |
2121 | yesYes |
| IntegerDataIntegerData | intint | 교착 상태 번호입니다.Deadlock number. 번호는 서버가 시작될 때 0부터 시작하도록 할당되고 교착 상태가 발생할 때마다 증가됩니다.Numbers are assigned beginning with 0 when the server is started, and incremented for each deadlock. | 2525 | yesYes |
| IntegerData2IntegerData2 | intint | 정보를 제공하기 위해서만 확인됩니다.Identified for informational purposes only. 지원되지 않습니다.Not supported. 향후 호환성은 보장되지 않습니다.Future compatibility is not guaranteed. | 5555 | yesYes |
| IsSystemIsSystem | intint | 이벤트가 시스템 프로세스에서 발생했는지 아니면 사용자 프로세스에서 발생했는지를 나타냅니다.Indicates whether the event occurred on a system process or a user process. 1 = 시스템, 0 = 사용자1 = system, 0 = user. | 6060 | yesYes |
| LoginSidLoginSid | imageimage | 로그인한 사용자의 SID(보안 ID)입니다.Security identification number (SID) of the logged-in user. 이 정보는 sys.server_principals 카탈로그 뷰에 있습니다.You can find this information in the sys.server_principals catalog view. 각 SID는 서버의 각 로그인마다 고유합니다.Each SID is unique for each login in the server. | 4141 | yesYes |
| ModeMode | intint | 0=NULL - 모든 잠금 모드와 호환(LCK_M_NL)0=NULL - Compatible with all other lock modes (LCK_M_NL) 1=스키마 안정성 잠금(LCK_M_SCH_S)1=Schema Stability lock (LCK_M_SCH_S) 2=스키마 수정 잠금(LCK_M_SCH_M)2=Schema Modification Lock (LCK_M_SCH_M) 3=공유 잠금(LCK_M_S)3=Shared Lock (LCK_M_S) 4=업데이트 잠금(LCK_M_U)4=Update Lock (LCK_M_U) 5=배타 잠금(LCK_M_X)5=Exclusive Lock (LCK_M_X) 6=내재된 공유 잠금(LCK_M_IS)6=Intent Shared Lock (LCK_M_IS) 7=의도 업데이트 잠금(LCK_M_IU)7=Intent Update Lock (LCK_M_IU) 8=의도 배타 잠금(LCK_M_IX)8=Intent Exclusive Lock (LCK_M_IX) 9=의도 업데이트 공유(LCK_M_SIU)9=Shared with intent to Update (LCK_M_SIU) 10=의도 배타 공유(LCK_M_SIX)10=Shared with Intent Exclusive (LCK_M_SIX) 11=의도 배타 업데이트(LCK_M_UIX)11=Update with Intent Exclusive (LCK_M_UIX) 12=대량 업데이트 잠금(LCK_M_BU)12=Bulk Update Lock (LCK_M_BU) 13=키 범위 공유/공유(LCK_M_RS_S)13=Key range Shared/Shared (LCK_M_RS_S) 14=키 범위 공유/업데이트(LCK_M_RS_U)14=Key range Shared/Update (LCK_M_RS_U) 15=키 범위 삽입 NULL(LCK_M_RI_NL)15=Key Range Insert NULL (LCK_M_RI_NL) 16=키 범위 삽입 공유(LCK_M_RI_S)16=Key Range Insert Shared (LCK_M_RI_S) 17=키 범위 삽입 업데이트(LCK_M_RI_U)17=Key Range Insert Update (LCK_M_RI_U) 18=키 범위 삽입 배타(LCK_M_RI_X)18=Key Range Insert Exclusive (LCK_M_RI_X) 19=키 범위 배타 공유(LCK_M_RX_S)19=Key Range Exclusive Shared (LCK_M_RX_S) 20=키 범위 배타 업데이트(LCK_M_RX_U)20=Key Range Exclusive Update (LCK_M_RX_U) 21=키 범위 배타 배타(LCK_M_RX_X)21=Key Range Exclusive Exclusive (LCK_M_RX_X) |
3232 | yesYes |
| ObjectIDObjectID | intint | 잠긴 개체의 ID입니다(사용 및 적용 가능한 경우).ID of the object that was locked, if available and applicable. | 2222 | yesYes |
| ObjectID2ObjectID2 | bigintbigint | 관련 개체 또는 엔터티의 ID입니다(사용 및 적용 가능한 경우).The ID of the related object or entity, if available and applicable. | 5656 | yesYes |
| OwnerIDOwnerID | intint | 1=TRANSACTION1=TRANSACTION 2=CURSOR2=CURSOR 3=SESSION3=SESSION 4=SHARED_TRANSACTION_WORKSPACE4=SHARED_TRANSACTION_WORKSPACE 5=EXCLUSIVE_TRANSACTION_WORKSPACE5=EXCLUSIVE_TRANSACTION_WORKSPACE |
5858 | yesYes |
| RequestIDRequestID | intint | 문을 포함하는 요청의 ID입니다.ID of the request containing the statement. | 4949 | yesYes |
| ServerNameServerName | nvarcharnvarchar | 추적 중인 SQL ServerSQL Server 인스턴스의 이름입니다.Name of the instance of SQL ServerSQL Server being traced. | 2626 | 예No |
| SessionLoginNameSessionLoginName | nvarcharnvarchar | 세션을 시작한 사용자의 로그인 이름입니다.Login name of the user who originated the session. 예를 들어 Login1을 사용하여 SQL ServerSQL Server 에 연결하고 Login2로 문을 실행할 경우 SessionLoginName은 Login1을 표시하고 LoginName은 Login2를 표시합니다.For example, if you connect to SQL ServerSQL Server using Login1 and execute a statement as Login2, SessionLoginName shows Login1 and LoginName shows Login2. 이 열에는 SQL ServerSQL Server 및 MicrosoftMicrosoft Windows 로그인이 모두 표시됩니다.This column displays both SQL ServerSQL Server and MicrosoftMicrosoft Windows logins. | 6464 | yesYes |
| SPIDSPID | intint | 이벤트가 발생한 세션의 ID입니다.ID of the session on which the event occurred. | 1212 | yesYes |
| StartTimeStartTime | datetimedatetime | 이벤트가 시작된 시간입니다(사용 가능한 경우).Time at which the event started, if available. | 1414 | yesYes |
| TextDataTextData | ntextntext | 리소스 유형에 따라 달라지는 텍스트 값입니다.Text value dependent on the resource type. | 11 | yesYes |
| TransactionIDTransactionID | bigintbigint | 시스템이 할당한 트랜잭션의 ID입니다.System-assigned ID of the transaction. | 44 | yesYes |
| TypeType | intint | 1=NULL_RESOURCE1=NULL_RESOURCE 2=DATABASE2=DATABASE 3=FILE3=FILE 5=OBJECT5=OBJECT 6=PAGE6=PAGE 7=KEY7=KEY 8=EXTENT8=EXTENT 9=RID9=RID 10=APPLICATION10=APPLICATION 11=METADATA11=METADATA 12=AUTONAMEDB12=AUTONAMEDB 13=HOBT13=HOBT 14=ALLOCATION_UNIT14=ALLOCATION_UNIT |
5757 | yesYes |
참고 항목See Also
sp_trace_setevent(Transact-SQL) sp_trace_setevent (Transact-SQL)
sys.dm_tran_locks(Transact-SQL)sys.dm_tran_locks (Transact-SQL)



