Query performance
- From: "Phil Lee" <phil.lee@xxxxxxxxxxxxxxxxx>
- Date: Fri, 14 Apr 2006 15:18:28 +0100
Is anyone able to explain why I'm getting very different performance as
reported by SQL Profiler for the same query when executed from 1) ADO.NET
and 2) SQL Management Studio.
I'm accessing SQL 2000 from a web service using .NET2 and Enterprise
Library.
Two particular queries have the following figures reported in Profiler
Application Name = .Net SqlClient Data Provider
1) Reads = 452, Duration = 203
2) Reads = 611931, Duration = 1636
If I copy the sql for these queries from the profiler and execute it in SQL
Management Studio, then profiler reports
Application Name = SQL Server Management Studio
1) Reads = 1238, Duration = 16
2) Reads = 704, Duration = 186
Which is a major improvement even though SQL profiler is reporting exactly
the same query.
Any idea what's causing this?
Regards
Phil Lee
.
- Follow-Ups:
- RE: Query performance
- From: Wei Lu
- RE: Query performance
- Prev by Date: Re: Temp table.
- Next by Date: Re: Creating and using a database VC++ 2005 and using WMPlayer Act
- Previous by thread: SQL 2005.
- Next by thread: RE: Query performance
- Index(es):
Relevant Pages
|