dbTalk Databases Forums  

traces

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss traces in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dimitris
 
Posts: n/a

Default traces - 06-07-2004 , 02:10 AM






Hi,

I know that in Oracle there is a trace script that you can start right
before the user runs a query (tracestart) including the id and the
computername-instance, and when the query has run, you use traceend to
produce a file - report that tells you where the maximum load was, and the
tables were accessed, and so on so later you can inprove the query syntax.
Is there something similar in SQL? Also can you provide examples?

Thanks,



Reply With Quote
  #2  
Old   
Dejan Sarka
 
Posts: n/a

Default Re: traces - 06-07-2004 , 02:41 AM






Check the SQL Profiler topics in MSDN at
http://msdn.microsoft.com/library/de..._perf_86ib.asp.
Profiler is a tool that enables you to create the traces and save the
results in a file or a table. You can create and start traces
programmatically as well. The easiest way is to create them using Profiler
and then saving them into a script file.

--
Dejan Sarka, SQL Server MVP
Associate Mentor
Solid Quality Learning
More than just Training
www.SolidQualityLearning.com

"dimitris" <dimitris (AT) microsoft (DOT) com> wrote

Quote:
Hi,

I know that in Oracle there is a trace script that you can start right
before the user runs a query (tracestart) including the id and the
computername-instance, and when the query has run, you use traceend to
produce a file - report that tells you where the maximum load was, and the
tables were accessed, and so on so later you can inprove the query syntax.
Is there something similar in SQL? Also can you provide examples?

Thanks,





Reply With Quote
  #3  
Old   
Jasper Smith
 
Posts: n/a

Default Re: traces - 06-07-2004 , 01:24 PM



Also have a look at

http://www.sql-server-performance.co...filer_tips.asp
http://www.sqlteam.com/downloads/PAS...edProfiler.ppt

--
HTH

Jasper Smith (SQL Server MVP)

I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org

"dimitris" <dimitris (AT) microsoft (DOT) com> wrote

Quote:
Hi,

I know that in Oracle there is a trace script that you can start right
before the user runs a query (tracestart) including the id and the
computername-instance, and when the query has run, you use traceend to
produce a file - report that tells you where the maximum load was, and the
tables were accessed, and so on so later you can inprove the query syntax.
Is there something similar in SQL? Also can you provide examples?

Thanks,





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.