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 > view part of a query thats running ?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
view part of a query thats running ?

Réponse
 
LinkBack Outils de la discussion
Vieux 17/07/2008, 17h20   #1
Scott
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut view part of a query thats running ?

If i execute a query that take a long time how can i tell which part of the
query is causing the problem ?

Is there anyway to step a query ?

Profiler just shows execution start & stop.

If i have a complex script to deploy for example, it would ful to know
which part its on ... or using queries with queries.

I guess the obvious answer is to break it up into different scripts.

Thanks for any info.
Scott


  Réponse avec citation
Vieux 17/07/2008, 19h20   #2
Denny Cherry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: view part of a query thats running ?

A while ago I wrote an addition to sp_who2 called sp_who3 which does
just this. When sp_who3 is run with a spid it will spid on a lot of
information including the current command within the batch which is
being run.

More info can be found here
http://itknowledgeexchange.techtarge...alled-sp_who3/

Denny

On Thu, 17 Jul 2008 16:20:00 +0100, "Scott" <scott_lotus@yahoo.co.uk>
wrote:

>If i execute a query that take a long time how can i tell which part of the
>query is causing the problem ?
>
>Is there anyway to step a query ?
>
>Profiler just shows execution start & stop.
>
>If i have a complex script to deploy for example, it would ful to know
>which part its on ... or using queries with queries.
>
>I guess the obvious answer is to break it up into different scripts.
>
>Thanks for any info.
>Scott
>

  Réponse avec citation
Vieux 18/07/2008, 15h44   #3
Scott
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: view part of a query thats running ?

thank you.


  Réponse avec citation
Vieux 20/07/2008, 09h35   #4
Uri Dimant
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: view part of a query thats running ?

Scott
See an execution plan of the query.



"Scott" <scott_lotus@yahoo.co.uk> wrote in message
news:ujhFWCC6IHA.1420@TK2MSFTNGP06.phx.gbl...
> If i execute a query that take a long time how can i tell which part of
> the query is causing the problem ?
>
> Is there anyway to step a query ?
>
> Profiler just shows execution start & stop.
>
> If i have a complex script to deploy for example, it would ful to know
> which part its on ... or using queries with queries.
>
> I guess the obvious answer is to break it up into different scripts.
>
> Thanks for any info.
> Scott
>



  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 07h51.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09048 seconds with 12 queries