amachanic / sp_whoisactive

sp_whoisactive
GNU General Public License v3.0
1.13k stars 281 forks source link

Is @get_transaction_info = 1 accurate? #112

Closed jcggaurino closed 3 weeks ago

jcggaurino commented 7 months ago

Hi @amachanic, Our organization was trying to utilize this option to get transaction log information of a process/query but when testing, tran_log_writes shows mostly "0 kB" for a database that has been using most of the transaction log already. Is there an open issue with this parameter not capturing the correct data?

image-2023-12-20-16-16-03-656 image-2023-12-20-16-16-14-761 image-2023-12-20-16-16-26-251

erikdarlingdata commented 3 weeks ago

@jcggaurino yes, it is accurate. You’ve blanked out the query text so I can’t see if any modifications are executing, but when I test locally, it shows non-zero numbers where it should.