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

time to write a transaction log Expand / Collapse
Author
Message
Posted Monday, November 04, 2013 4:51 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, November 04, 2013 4:52 PM
Points: 1, Visits: 73
Hi All,

I would like to know that what percentage of time , SQL server is spending to write the transaction log file.

I mean ig one transaction gets committed in a min, so in that one minute how long SQL server took to write it first in T Log file. Please provide me some script or DMVs.

PS: I am using SQL Server 2005
Post #1511326
Posted Monday, November 04, 2013 6:17 PM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 10:48 AM
Points: 534, Visits: 790
If this is a controlled environment you could use the following script (change database name):
SELECT  file_id,
io_stall_write_ms,
io_stall,
num_of_writes
FROM sys.dm_io_virtual_file_stats(DB_ID('DATABASENAME'), 2);



http://technet.microsoft.com/en-us/library/ms190326.aspx

Run it before your transaction and then after it to collect the deltas.




Microsoft Certified Master - SQL Server 2008
Follow me on twitter: @keith_tate

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1511337
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse