mssql數據庫碰到的問題解決

1.數據庫死鎖

select    

    request_session_id spid,   

    OBJECT_NAME(resource_associated_entity_id) tableName    

from    

    sys.dm_tran_locks   

where    

resource_type='OBJECT'

 

 

kill 51

    

    use master

Select * from sysprocesses where blocked<>0

 

 

 

2.數據庫日誌壓縮

2.1將恢復模式改爲簡單

 

2.2將自動收縮設爲true

 

 

 

2.3 指定數據庫->任務->收縮->文件


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章