-- pokazuje tylko sesje ktore wykonuja zapis do bazy danych SELECT * FROM sys.dm_exec_sessions WHERE is_user_process = 1 AND writes > 0;