Re: run Profiler on a specific SP/Query/Function

Tech-Archive recommends: Speed Up your PC by fixing your registry



Michael Hotek (mike@xxxxxxxxxxxxxxxxxxxxxxxx) writes:
Also, I find the RPC: Starting and the TSQL:BatchStarting events to be
virtually worthless and never use them. I always use the RPC: Completed
and TSQL: BatchCompleted events, because you get duration, reads,
writes, and CPU which are critical stats when trying to analyze
anything.

Depends. The Starting events can be useful if you want to see how things
interact, so you get a better grip over the flow. Also, I have a feeling
that you don't always get a Completed event if the batch is aborted due to
an error. (But I have not examined this in detail.)

But I far more often exclude them than include them in traces, that's true.



--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: waittype=WRITELOG
    ... I will be looking for next havy queries ... What value are looking at Duration or CPU? ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Query training -- Complex queries
    ... > Update PositionsEOM ... Here you don't have a derived table, but a correlated subquery. ... UPDATE in Books Online. ... is not written for SQL Server. ...
    (microsoft.public.sqlserver.server)
  • Re: Linked Server: How to check if server exists?
    ... The root problem is described in the Books Online topic Batches. ... Rick Byham, SQL Server Books Online ... linked server don't run on those development machines not having that linked ...
    (microsoft.public.sqlserver.connect)
  • Re: STORED PROCEDURE - passing table name as a parameter
    ... T-SQL, is that you get problems if the view definition does not fit into ... will need to query other system tables, for instance syscolumns. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Problem when changing Views
    ... There aree several reasons. ... I use neither of the tools, but I guess that Design View resubmits the ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)