SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Question: Profiler trace!!!


Question: Profiler trace!!!

Author
Message
JMSM
JMSM
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1934 Visits: 985
Hello again,

As i was reading in a fantástic link send by Gail Shaw, i put a profiler running to catch all the queries in a period o time but, now i've got more questions about it.

I attach a file Aux-Profiler.xlsx where i've inserted all the data that becomes from one *.trc file:

Questions:
1st How can i see what event is the one in the first raw as the procedure name appears NULL

2nd Am i doing the conversion to minutes well?
I need to get all the info that was running more than a minute but i'm completely lost on how should i change the data used to minutes/seconds.Crying

The only diference between what i've been doing and the fabulous link (http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/)
is that when creating my table i change the field TextData from varchar(4000) to varchar(max)
I send you to the file with all the steps (Aux-Profiler-Steps.txt)

3rd I put @maxfilesize = 3000 in the profiler template (Aux-Profiler-Template.txt)
I need to know if the file will be rewrited if the file growth to 3GB (@maxfilesize) before end time?

4th Can i use any parameter that create a new file(s) when the maxfilesize will be at limit?

Thanks and regards,
JMSM ;-)
Attachments
Aux-Profiler.xlsx (48 views, 11.00 KB)
Aux-Profiler-Steps.txt (45 views, 1.00 KB)
Aux-Profiler-Template.txt (47 views, 1.00 KB)
Leo Leong
Leo Leong
Mr or Mrs. 500
Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)Mr or Mrs. 500 (578 reputation)

Group: General Forum Members
Points: 578 Visits: 328
Questions:
1st How can i see what event is the one in the first raw as the procedure name appears NULL
-- You can capture EventClass column (27) in your profiler

2nd Am i doing the conversion to minutes well?
I need to get all the info that was running more than a minute but i'm completely lost on how should i change the data used to minutes/seconds.Crying
-- in SQL Server 2008, duration field stores microsecond. So, 1,000,000 = 1 second

3rd I put @maxfilesize = 3000 in the profiler template (Aux-Profiler-Template.txt)
I need to know if the file will be rewrited if the file growth to 3GB (@maxfilesize) before end time?
-- @maxfilesize = 3000 means a new trace file will be generated (automatically) when current trace file reached 3GB of size.

4th Can i use any parameter that create a new file(s) when the maxfilesize will be at limit?
-- refer 3rd. you don't need to. file name will be appended will a running number.

[/quote]
JMSM
JMSM
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1934 Visits: 985
Thanks a lot.

Regards,
JMSM ;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search