Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Read column in profiler

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-26 : 13:04:27
Hi whether Read,Write column in sqlserver 2000 profiler denotes
in milliseconds or seconds?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-26 : 14:27:11
It's neither. What you are thinking about is the duration column, which is in milliseconds. It's not until 2005 that it changes. In 2005, the GUI displays it in milliseconds, but the data is actually in microseconds. So if you query the trace file or table, you get to see microseconds.

Reads/writes have to do with I/O not time.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-26 : 15:55:32
which column do i need to check for query optimization?

quote:
Originally posted by tkizer

It's neither. What you are thinking about is the duration column, which is in milliseconds. It's not until 2005 that it changes. In 2005, the GUI displays it in milliseconds, but the data is actually in microseconds. So if you query the trace file or table, you get to see microseconds.

Reads/writes have to do with I/O not time.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-26 : 15:57:58
I look at TextData, Reads, Writes, CPU, and Duration.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-26 : 16:10:42
for instance,if the Text Data is select query
CPU IS 90141
READ IS 350232
WRITE IS 1985
DURATION IS 93656

Which i need to consider

SELECT
abs(sum(Value)), V.VarID, getdate(), VarCurrency, @COBDate, sth.SourceID
FROM
#a wrk
INNER JOIN dbo.b V ON wrk.BusinessEntityShortName = V.BusinessEntityShortName
AND wrk.RiskMeasureShortDescr = V.RiskMeasureShortDescr
AND wrk.RiskIdShortName=V.RiskIdShortName
AND isnull(wrk.CurveRefShortDescr,'')=isnull(V.CurveRefShortDescr,'')
AND isnull(wrk.TimeBucketDays,'')=isnull(V.TimeBucketDays,'')
INNER JOIN c sth ON wrk.HierarchyID = sth.HierarchyID
INNER JOIN d st ON sth.SourceTableID = st.SourceTableID
WHERE
st.Name = 'IR_Risk_XGRK_Limit'
AND sth.AdjustLevelID = @BaseLevelID
AND st.SourceSystemID=@SourceSystemID
GROUP BY
V.VarID,
VarCurrency,sth.SourceID


quote:
Originally posted by tkizer

I look at TextData, Reads, Writes, CPU, and Duration.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-26 : 16:13:16
Yikes, those numbers are really bad. You need to look at the execution plan of the query and determine what indexes to add.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-26 : 16:25:13
your suggestion is based on Duration (ie)92.656 seconds ?

quote:
Originally posted by tkizer

Yikes, those numbers are really bad. You need to look at the execution plan of the query and determine what indexes to add.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-26 : 16:29:28
Duration and Read column are too high.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-26 : 16:55:54
thanks tkizer for your patient reply..
quote:
Originally posted by tkizer

Duration and Read column are too high.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-26 : 17:03:28
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -