전체 글 655

[스크랩] 오픈 트랜잭션 쿼리가 있는 DB 찾아보기

https://www.overtop.co.kr/139 오픈 트랜잭션 쿼리가 있는 데이터베이스 찾아보기 현재 오픈된 트랜잭션이 어느 데이터베이스에 있는지 찾는 방법은 여러 가지 있다. 이 활성화된 세션을 찾아야 블로킹세션을 찾을 수 있다. 아래와 같이 세션 2개를 열어서 확인해보자 -- session # www.overtop.co.kr 현재 오픈된 트랜잭션이 어느 데이터베이스에 있는지 찾는 방법은 여러 가지 있다. 이 활성화된 세션을 찾아야 블로킹세션을 찾을 수 있다. 아래와 같이 세션 2개를 열어서 확인해보자 -- session #1 tempdb 를 열고 실제 데이터베이스는 TD 에 있는 테이블을 업데이트 하고 있다. use tempdb go begin tran update A set diff = '1'..

Database/MS-SQL 2022.07.18

[스크랩] Lazy Log Truncation - Clearing of SQL transaction log VLF status deferred

Lazy Log Truncation - Clearing of SQL transaction log VLF status deferred - Microsoft Tech Community Lazy Log Truncation - Clearing of SQL transaction log VLF status deferred First published on MSDN on Jun 27, 2013 I came across an oddity in the transaction log when I was testing Availability Group backup scenarios which really had me confused. It required some help from my colleague Denzil and ..

Database/MS-SQL 2022.07.18