Kh?c ph?c: Nh su t?p d? li?u vi?c lm m?t m?t th?i gian di ? xa d? li?u t? m?t b? my c s? d? li?u MDW trong SQL Server 2008 hay SQL Server 2008 R2

D?ch tiu ? D?ch tiu ?
ID c?a bi: 2584903 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

? Trang ny

Microsoft phn ph?i Microsoft SQL Server 2008 R2 SP1 b?n s?a l?i nh l m?t t?p tin t?i v?. B?i v? cc b?n s?a l?i tch l?y, m?i b?n pht hnh m?i c ch?a t?t c? cc hotfix v t?t c? cc s?a l?i b?o m?t m ?c nh km v?i tr?c SQL Server 2008 R2 SP1 s?a ch?a pht hnh.

TRI?U CH?NG

H?y xem xt k?ch b?n sau y:
  • b? my c s? d? li?u qu?n l? d? li?u kho (MDW) c m?t b?ng snapshots.query_stats c ch?a m?t l?ng l?n d? li?u trong Microsoft SQL Server 2008 hay trong Microsoft SQL Server 2008 R2.
  • B?n ch?y cng vi?c nh su t?p d? li?u sau ? xa d? li?u t? b? my c s? d? li?u MDW.
    mdw_purge_data_ [<MDW database="" name=""></MDW>]
Trong tr?ng h?p ny, ph?i m?t m?t th?i gian di cho cng vi?c nh su t?p d? li?u ? xa d? li?u.

Ghi ch
  • Cng vi?c nh su t?p d? li?u cu?c g?i th? t?c core.sp_purge_data ?c lu tr? ? xa d? li?u.
  • ? bi?t thm chi ti?t v? v?n ? ny trong SQL Server 2008 R2, h?y truy c?p web site c?a Microsoft sau y:
    Thng tin chung v? v?n ? ny trong SQL Server 2008 R2

NGUYN NHN

V?n ? ny x?y ra v? cng vi?c mdw_purge_data m?t m?t th?i gian di ? th?c hi?n m?t l theo ?nh h?ng ho?t ?ng r? rng n?u b?ng snapshots.query_stats ch?a m?t l?ng l?n d? li?u.

GI?I PHP

b?n ghi d?ch v? gi thng tin

SQL Server 2008

? gi?i quy?t v?n ? ny trong SQL Server 2008, h?y lm theo cc b?c sau:
  1. C ?c gi b?n ghi d?ch v? m?i nh?t cho SQL Server 2008.

    ? bi?t thm chi ti?t, nh?p vo s? bi vi?t sau ? xem bi vi?t trong c s? ki?n th?c Microsoft:
    968382 Lm th? no ? c ?c gi b?n ghi d?ch v? m?i nh?t cho SQL Server 2008
  2. M?t hi?n t?i MDW b? my c s? d? li?u, b?n ph?i c?p nh?t n b?ng cch ch?y cc c?u h?nh qu?n l? d? li?u kho Wizard sau khi b?n ci ?t chuyn bi?t gi b?n ghi d?ch v? m?i nh?t cho SQL Server 2008.


SQL Server 2008 R2

? gi?i quy?t v?n ? ny trong SQL Server 2008 R2, h?y lm theo cc b?c sau:
  1. C ?c gi b?n ghi d?ch v? m?i nh?t cho SQL Server 2008 R2.

    ? bi?t thm chi ti?t, nh?p vo s? bi vi?t sau ? xem bi vi?t trong c s? ki?n th?c Microsoft:
    2527041 Lm th? no ? c ?c gi b?n ghi d?ch v? m?i nh?t cho SQL Server 2008 R2
  2. M?t hi?n t?i MDW b? my c s? d? li?u, b?n ph?i c?p nh?t n b?ng cch ch?y cc c?u h?nh qu?n l? d? li?u kho Wizard sau khi b?n ci ?t chuyn bi?t gi b?n ghi d?ch v? m?i nh?t cho SQL Server 2008 R2
  3. C?p Nh?t th? t?c sp_purge_orphaned_notable_query_text ?c lu tr? nh sau:

    Hi?n c th? t?c

    -- Deleting TOP N orphaned rows in query plan table by joining info from temp table variable
    -- This is done to speed up delete query. 
    DELETE TOP (@delete_batch_size) snapshots.notable_query_plan 
    FROM snapshots.notable_query_plan AS qp , #tmp_notable_query_plan AS tmp
    WHERE tmp.[sql_handle] = qp.[sql_handle]
    Th? t?c C?p Nh?t

    -- Deleting TOP N orphaned rows in query text table by joining info from temp table
    -- This is done to speed up delete query. 
    DELETE TOP (@delete_batch_size) snapshots.notable_query_text 
    FROM snapshots.notable_query_text AS qt, #tmp_notable_query_text AS tmp
    WHERE tmp.[sql_handle] = qt.[sql_handle]
    Lu ? Nh?ng thay ?i ny l b?t bu?c ? s?a cc vn b?n c?a th? t?c sp_purge_orphaned_notable_query_text ?c lu tr? b?i v? tuyn b? delete khng chnh xc tham chi?u b?ng snapshots.notable_query_plan sau khi b?n p d?ng SQL Server 2008 R2 Service Pack 1.

T?NH TR?NG

Microsoft ? xc nh?n r?ng y l m?t v?n ? trong cc s?n ph?m c?a Microsoft ?c li?t k trong ph?n "p d?ng cho".

THNG TIN THM

Cc k?ch b?n hon ton C?p Nh?t th? t?c thu ?c lu tr? d? li?u c?ng c th? ?c t?m th?y trong blog sau y:
http://blogs.MSDN.com/b/sqlagent/Archive/2011/04/12/Data-Collector-s-SP-Purge-Data-may-run-for-hours-if-there-are-many-orphaned-plans-to-Purge.aspx


Thu?c tnh

ID c?a bi: 2584903 - L?n xem xt sau cng: 05 Thang Sau 2012 - Xem xt l?i: 5.0
p d?ng
  • Microsoft SQL Server 2008 Standard
  • Microsoft SQL Server 2008 Developer
  • Microsoft SQL Server 2008 Enterprise
  • Microsoft SQL Server 2008 R2 Datacenter
  • Microsoft SQL Server 2008 R2 Developer
  • Microsoft SQL Server 2008 R2 Enterprise
  • Microsoft SQL Server 2008 R2 Standard
T? kha:
kbqfe kbexpertiseadvanced kbsurveynew kbfix kbmt KB2584903 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny: 2584903

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com