PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Query Analyzer Slow - Management Studio Fast
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Query Analyzer Slow - Management Studio Fast

Réponse
 
LinkBack Outils de la discussion
Vieux 31/03/2008, 11h15   #1
Clint Good
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Query Analyzer Slow - Management Studio Fast

Hi

If I run a simple "select top 10000 * from table" query against a SQL
2005 server from a client pc using management studio the query returns
in about a second. Running the same query on the same client pc using
the older query analyzer takes 25 seconds.

Does anyone know why/how this could happen ?

Do the two applications connect to SQL using different mechanisms ?
(Both QA and MS connect using windows authentication)

Regards
Clint.
  Réponse avec citation
Vieux 31/03/2008, 15h06   #2
John Bell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Query Analyzer Slow - Management Studio Fast

Hi Clint

Query analyser will be using an ODBC connection, have you got ODBC tracing on?

Are you returning both sets of results to grids/text?

Have you compared the query plans?

Are these on the same machine?

John

"Clint Good" wrote:

> Hi
>
> If I run a simple "select top 10000 * from table" query against a SQL
> 2005 server from a client pc using management studio the query returns
> in about a second. Running the same query on the same client pc using
> the older query analyzer takes 25 seconds.
>
> Does anyone know why/how this could happen ?
>
> Do the two applications connect to SQL using different mechanisms ?
> (Both QA and MS connect using windows authentication)
>
> Regards
> Clint.
>

  Réponse avec citation
Vieux 31/03/2008, 16h21   #3
Clint Good
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Query Analyzer Slow - Management Studio Fast

Hi John

> Query analyser will be using an ODBC connection, have you got ODBC tracing on?


ODBC. Thanks. I've left the office for the day, but I'm almost positive
it isn't on. Will check tomorrow.

> Are you returning both sets of results to grids/text?


Both QA and MgmtStudio results to text.

> Have you compared the query plans?


Didn't think to as it was just "select top 20000 * from table". I'd be
amazed if this was it as it is consistenty coming up with one good plan
for a MgmtStudio client and one bad one for QA client.

> Are these on the same machine?


Yes. Same machine.

Thanks for your reply
Regards
Clint.
  Réponse avec citation
Vieux 31/03/2008, 17h32   #4
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Query Analyzer Slow - Management Studio Fast

> Both QA and MgmtStudio results to text.

Try executing both to grid and compare. Perhaps try with a smaller row number and work upwards and
compare grid/grid vs. text/text to see if there is a smaller difference in grid handling between QA
and SSMS compared to text handling.

I believe that MS did some smarts regarding text handling in SSMS where in QA there was lots of
overhead for "whitespace painting".

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Clint Good" <clgood@bigpond.com.au> wrote in message news:exy6sK0kIHA.1052@TK2MSFTNGP05.phx.gbl...
> Hi John
>
>> Query analyser will be using an ODBC connection, have you got ODBC tracing on?

>
> ODBC. Thanks. I've left the office for the day, but I'm almost positive it isn't on. Will check
> tomorrow.
>
>> Are you returning both sets of results to grids/text?

>
> Both QA and MgmtStudio results to text.
>
>> Have you compared the query plans?

>
> Didn't think to as it was just "select top 20000 * from table". I'd be amazed if this was it as it
> is consistenty coming up with one good plan for a MgmtStudio client and one bad one for QA client.
>
>> Are these on the same machine?

>
> Yes. Same machine.
>
> Thanks for your reply
> Regards
> Clint.



  Réponse avec citation
Vieux 01/04/2008, 00h28   #5
Clint Good
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Query Analyzer Slow - Management Studio Fast

Thanks for you reply Tibor.

>> Try executing both to grid and compare. Perhaps try with a smaller row number and work upwards and


I had done that. I mentioned 20000 in the original post because it
wasn't a huge amount of data and it demonstrated the order of magnatude
speed difference between the tools.

This was a bizarre problem. This had been occurring for a number of days
and then this morning I came into work and the problem was gone. To be
honest I don't know if we'll ever know what caused the (temporary ?)
problem.

Hopefully this one does not return.

Regards
Clint.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h35.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12241 seconds with 13 queries