Professional Documents
Culture Documents
Home Forums SQL Server 2022 SQL Server 2022 - Administration IS there
any script to find what transactions ran yesterday or week or mont
tkumar Is there any script to find what transactions ran yesterday or week
or month before in sqlserver
we are not using any tools and if any issue comes we can see
sp_who2'active' but if log size is full suddenly before 2 days and if
SSCertifiable we want to find the root cause why log got increased and disk
Points: 5553 space issue occurred we cannot see old date transactions
occurred
More
actions
Thanks
Naga.Rohitkumar
Green You would have to dump the log backups using fn_dump_dblog to
see what went on, but it's going to be a huge mess.
Sounds like you need to enable auditing, but that's going to be for
future events, not past.
https://www.sqlservercentral.com/forums/topic/is-there-any-script-to-find-what-transactions-ran-yesterday-or-week-or-mont 1/3
17/2/24, 22:49 IS there any script to find what transactions ran yesterday or week or mont – SQLServerCentral Forums
SSC Guru
Points: 113405
More
actions
SSC Guru Also, what are your growth settings on the log file? They should
Points: 1003726 NOT be based on percentage.
More As a bit of a sidebar, here are some typical "fun" things that can
actions
make your log file explode...
--Jeff Moden
https://www.sqlservercentral.com/forums/topic/is-there-any-script-to-find-what-transactions-ran-yesterday-or-week-or-mont 2/3
17/2/24, 22:49 IS there any script to find what transactions ran yesterday or week or mont – SQLServerCentral Forums
Helpful Links:
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)
You must be logged in to reply to this topic. Login to reply
https://www.sqlservercentral.com/forums/topic/is-there-any-script-to-find-what-transactions-ran-yesterday-or-week-or-mont 3/3