SQL Server ã§ãããããã¯ãç£è¦ããã«ã¯
SQL Server ã§ãããããã¯ãç£è¦ããã«ã¯ã次㮠3ã¤ã®æ¹æ³ãããã¾ãã
- SQL Server Profiler ã® DeadLock Graph ã¤ãã³ãã¯ã©ã¹ãå©ç¨
- SQL Server Profiler ã® Lock:DeadLock 㨠Lock:DeadLock Chain ã¤ãã³ãã¯ã©ã¹ãå©ç¨
- ãã¬ã¼ã¹ ãã©ã° 1204 ãå©ç¨
SQL Server Profilerï¼ãããã¡ã¤ã©ï¼ã® DeadLock Graph ãå©ç¨ããã°ãã°ã©ãã£ã«ã«ã«ãããããã¯ãç£è¦ã§ãã¾ãï¼SQL Server 2005 ããã®æ°æ©è½ï¼ãLock:DeadLock 㨠Lock:DeadLock Chain ã¤ãã³ãã¯ã©ã¹ãå©ç¨ããå ´åã¯ãLock:DeadLock ããããããã¯çºçæãLock:DeadLock Chain ããããããã¯ã«é¢ä¿ã®ãã£ãããã»ã¹ãã¨ã®æ å ±ãåå¾ã§ããããã«ãªãã¾ãï¼ãã㯠SQL Server 7.0ï¼2000 ã§ãå©ç¨ã§ãã¾ãããã¡ãããSQL Server 2005ï¼2008 ã§ãå©ç¨ã§ãã¾ãï¼ã
ãã¬ã¼ã¹ ãã©ã° 1204 ã¯ãSQL Server ã®èµ·åãªãã·ã§ã³ã§æå¹ã«ãããã次ã®ããã« DBCC TRACEON ã³ãã³ãã§æå¹åã§ãã¾ãã
DBCC TRACEON (1204,-1)
ãã®ã³ãã³ãã¯ãSQL Server ãèµ·åãã¦ããéãæå¹ã§ãããããæå¹åãã¦ããã¨ããããããã¯ã®çºçæã« SQL Server ã®ãã°ã«è¨é²ãããããã«ãªãã®ã§ãManagement Studio ã®ã管çããã©ã«ãã®ãSQL Server ãã°ããããããããã¯ã«é¢ããæ å ±ã確èªã§ããããã«ãªãã¾ãã
ãªããè¨å®ããã¦ãããã¬ã¼ã¹ ãã©ã°ã確èªããã«ã¯ã次ã®ããã« DBCC TRACESTATUS ã³ãã³ããå®è¡ãã¾ãã
DBCC TRACESTATUS
ãã¬ã¼ã¹ ãã©ã°ãç¡å¹åãããå ´åã¯ã次ã®ããã« DBCC TRACEOFF ã³ãã³ããå®è¡ãã¾ãã
DBCC TRACEFF (1204,-1)
ãããã¡ã¤ã©ã®ã¤ãã³ãã¯ã©ã¹ã®è©³ç´°ï¼ãã«ãï¼ã¯ãã¡ã
http://msdn.microsoft.com/ja-jp/library/ms177493.aspx
ãã¬ã¼ã¹ ãã©ã°ã®è©³ç´°ï¼ãã«ãï¼ã¯ãã¡ã
http://msdn.microsoft.com/ja-jp/library/ms188396.aspx