Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

What Is Filling Up The Transaction Log Expand / Collapse
Author
Message
Posted Thursday, December 23, 2010 8:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, December 24, 2010 2:17 AM
Points: 0, Visits: 3
Comments posted to this topic are about the item What Is Filling Up The Transaction Log
Post #1038811
Posted Friday, February 18, 2011 10:43 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, March 31, 2014 2:50 PM
Points: 2, Visits: 72
I'd suggest that the code for [Log Used %] be changed to:

, CAST(CAST(CAST(lu.cntr_value AS FLOAT) / CAST(ls.cntr_value AS FLOAT) AS DECIMAL(18, 4)) * 100 AS DECIMAL(18, 2)) AS [Log Used %]

This gives you an additional 2 digits before doing your left shift so you don't always end up with results .00.



Post #1066511
Posted Thursday, February 16, 2012 7:25 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, December 20, 2013 4:45 AM
Points: 236, Visits: 239
Title was full of promise, but we need more.
Ideally, we want to be able to determine what statements caused the log to grow so suddenly (and who issued the statements) and we want to do this automatically, not by running a query. i.e. at the time there is "excessive log file growth" alert the DBA providing a list of user-statements currently executing.
The tools and DMVs are out there but unfortunately do not provide a full picture (who, what, when, sql statements running). I think Profiler comes to the closest (Events "Log File Auto Grow" & "SQL:BatchCompleted") but even that involves monitoring and examining, not automatically alerting.
Post #1253129
Posted Monday, September 24, 2012 7:42 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 9:34 AM
Points: 174, Visits: 403
I have a scenario here:

On my TEMPDB, the log reuse wait description shows " Active_transaction".
Then I checked DBCC OPENTRAN('tempdb') . I got message showing there are no open transactions. Then I also queried:
select * from sys.dm_tran_active_transactions

I see some four 6 worktables. I don't know about these tables. Now how can I change my tempdb state to "Nothing".
Post #1363487
Posted Monday, September 24, 2012 8:02 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 9:34 AM
Points: 174, Visits: 403
When I restarted the server, tempdb - logreuse wait description showing 'Nothing'. So, is this the only way we need to do?
Post #1363498
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse