Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

Possible to profile for "high number of executes"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian Boyd - 14 Jul 2008 14:51 GMT
We have a system that was written with a few scalar UDF's.

These seem to perform very poorly, in that they get run per-row rather than
set based (which is fine, and if it were up to me i would not use them).

But what i was hoping for is a way to find operations in profiler that have
a high execution count (5000, 10000, 100000) for a single query.

Right now in profiler i include the execution plan with costs, and can go to
each one looking at the execution plan for the number of executes.

There already is "hash warning", "Scan begin", "missing statistics" events.
Perhaps there is "executes warning"?
Ian Boyd - 14 Jul 2008 20:53 GMT
> We have a system that was written with a few scalar UDF's.
>
> These seem to perform very poorly, in that they get run per-row rather
> than set based (which is fine, and if it were up to me i would not use
> them).

Nevermind. These UDF's are running during a "Compute Scalar" operation,
which only ever has one execute.

So even though in profiler i see it executing thousands of times (once for
each row), it's really only executing once.

So there's no way to profile by number of executes.
Andrew J. Kelly - 14 Jul 2008 22:23 GMT
No not directly. You would have to trace to a file and then parse the
results such that you can aggregate them up and get the totals. Have a look
at this:  http://www.cleardata.biz/cleartrace/

Signature

Andrew J. Kelly    SQL MVP
Solid Quality Mentors

>> We have a system that was written with a few scalar UDF's.
>>
[quoted text clipped - 9 lines]
>
> So there's no way to profile by number of executes.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.