locked
parallel queryk RRS feed

  • Question

  • sziasztok

     

    hogy tudok statisztikat lekerni arrol, hogy futnak-e es ha igen mik parallel lekerdezesi tervvel? lehetoleg historikus adat kene, mert azt, hogy perpill mi fut ugy, meg az sp_who2 is elarulja, de nekem ossze kene szedni, hogy a tobb 10000SPben hol van olyan statement, ami paralell tervet hajt vegre.

    Monday, March 19, 2007 8:23 AM

All replies

  • Szerintem ezt csak a Degree of Parallelism (7.0 Insert) Event Class -al tudod megnézni a profileren keresztül, ez így persze nem historikus adat. Mondjuk 1 picit macerás, mert ez az eventclass nem menti le, hogy mit futtatott (mi volt a tárolteljárás) de a lementett trace file-t fel tudod dolgozni.

    SELECT identity(int,1,1) as ColNumber, *

    INTO #tttt

    FROM fn_trace_gettable('d:\my documents\1.trc', default);

    WITH CTE(ColNumber,EventClass)

    AS

    (

    select ColNumber-1,EventClass

    from #tttt

    where eventclass = 28

    )

    SELECT cnt = Count(*),cast(TextData as varchar(200))

    FROM #tttt as t

    JOIN CTE as c ON t.ColNumber=c.ColNumber

    GROUP BY cast(TextData as varchar(200));

     

    Monday, March 19, 2007 10:11 AM
    Moderator