November 4, 2013 at 4:51 pm
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
November 4, 2013 at 6:17 pm
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.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy