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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 SQL Profiler Question.
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

5 Posts

Posted - 12/05/2012 :  17:48:31  Show Profile  Reply with Quote
Hi Guys,

Need Expert Openion.

I am running SQL Server Profiler (I am running because "Our user keep complaning application is running slow" so my first
step,run SQL Server Profiler.
Please correct me if i am wrong...
Here i am checking which SP or query duration time is big Numbers. I pick one SP that has 223 Duration. I ran same
SP in SSMS and execution is 0:00:00.

My question is should i worry about this store procedure?

2) Question:- Is it possible SP is running fine but .Net Programing is bad that's why application is slow?
If yes is there any way i can Prove it SP is fine check .net Page?

Thanks for advise.

Almighty SQL Goddess

38200 Posts

Posted - 12/05/2012 :  18:11:17  Show Profile  Visit tkizer's Homepage  Reply with Quote
Profiler is showing duration in milliseconds, so yes 223 milliseconds is less than one second.

Should you worry? Depends on what your performance requirements are.

Yes it's possible for the SP to run in SSMS but not fine from the application. Different connection parameters as well as how it's called can affect the execution plan.

You can duplicate what the code is doing by grabbing its connection parameters (you can get that in Profiler via the existing connections) and then grabbing the exact call (probably RPC:Completed). Now take the connection parameters and put them into an SSMS window and then add on the stored procedure call. See what you get regarding duration and execution plan.

You can also view the app's execution plan in Profiler.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page

Starting Member

5 Posts

Posted - 12/05/2012 :  18:21:14  Show Profile  Reply with Quote
Thanks for explaning in detail.

I am not very good in SQL Profile area.
Could you please through some light on "app's execution plan in profiler is"?
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000