473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

waittype=WRITELOG

Hi

In my server (MSSQL 2000 sp4) very often I see long time of executing query
with waittype=WRITELOG

Recovery is set to SIMPLE and there is no autoShrink.

Auto increment file size (log) is set to 10%

What can be the reason of this problem?

Marek

Mar 17 '06 #1
6 6944
If there are aren't anny errors and the query completes, there usually isn't
a problem.
Without knowing anything about your system, it usually points to the sql i/o
being greater then the disk system can maintain. In other words a request is
made and then retries until it gets a response.
--
Jack Vamvas
___________________________________
Receive free SQL tips - www.ciquery.com/sqlserver.htm
"Marek Wierzbicki" <ma******************@azymuttttt.pl> wrote in message
news:dv***********@news2.ipartners.pl...
Hi

In my server (MSSQL 2000 sp4) very often I see long time of executing query with waittype=WRITELOG

Recovery is set to SIMPLE and there is no autoShrink.

Auto increment file size (log) is set to 10%

What can be the reason of this problem?

Marek

Mar 17 '06 #2
Marek Wierzbicki (ma******************@azymuttttt.pl) writes:
In my server (MSSQL 2000 sp4) very often I see long time of executing
query with waittype=WRITELOG

Recovery is set to SIMPLE and there is no autoShrink.

Auto increment file size (log) is set to 10%

What can be the reason of this problem?


On my machine at home I see six processes with *last*waittype = WRITELOG.
All are system spids.

As far as I know you can see the current wait type in clear text anyway,
but there is a binary column waittype in sysprocesses.

This long-running query, is it performing any updates?

And most importantly, do you perceive any real performance problems?

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Mar 17 '06 #3
>> What can be the reason of this problem?

On my machine at home I see six processes with *last*waittype = WRITELOG.
All are system spids.

As far as I know you can see the current wait type in clear text anyway,
but there is a binary column waittype in sysprocesses.

This long-running query, is it performing any updates?

And most importantly, do you perceive any real performance problems?

I am looking for reason slowly works of my SQL

Marek
Mar 20 '06 #4
Marek Wierzbicki (ma******************@azymuttttt.pl) writes:
What can be the reason of this problem?


On my machine at home I see six processes with *last*waittype = WRITELOG.
All are system spids.

As far as I know you can see the current wait type in clear text anyway,
but there is a binary column waittype in sysprocesses.

This long-running query, is it performing any updates?

And most importantly, do you perceive any real performance problems?

I am looking for reason slowly works of my SQL


WRITELOG may have something to do with it, but it may also be a false
clue.

Since I don't know your system, I cannot give much direct advice. But
I would suggest to start to scrutinize queries and indexes,.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Mar 20 '06 #5
> I would suggest to start to scrutinize queries and indexes,.

I start do it from 2 weeks. After create indexes and join on indexed fields
is a little bit better. I will be
looking for next havy queries and optimize it.

Do you hear sth about
"periscope" - tolls for searching worst queries (or others such tools)? I
can't do it with profiler (all queries have zero execution time)

Marek
Mar 21 '06 #6
Marek Wierzbicki (ma******************@azymuttttt.pl) writes:
I start do it from 2 weeks. After create indexes and join on indexed
fields is a little bit better. I will be looking for next havy queries
and optimize it.

Do you hear sth about
"periscope" - tolls for searching worst queries (or others such tools)? I
can't do it with profiler (all queries have zero execution time)


If all queries execute in zero time, then you must have a good system. :-)
What value are looking at Duration or CPU? Does StartTime and EndTime
agree with the zero-time?

You can look at http://www.sqldev.net/xp/xphrtimer.htm. This download
permits you install a DLL, so you can get millisecond resolution in
Profiler. With the standard time, you cannot get durations below 16 ms.

Then again, if your queries are that quick, it is not likely that you
can get that much information, even with a better timer.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Mar 21 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: joshsackett | last post by:
Hi All, I have a 2MB database set to SIMPLE recovery. This database is used only to generate new keys to web users. It has two columns - UID and LASTDATE. The UID column is only updated when users...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.