Aracılığıyla paylaş


sp_help_downloadlist (Transact-SQL)

Tüm satırları listeler sysdownloadlist sistem tablosu sağlanan iş veya hiçbir iş belirtilmemişse, tüm satırlar için.

Topic link iconTransact-SQL sözdizimi kuralları

sp_help_downloadlist { [ @job_id = ] job_id | [ @job_name = ] 'job_name' } 
     [ , [ @operation = ] 'operation' ] 
     [ , [ @object_type = ] 'object_type' ] 
     [ , [ @object_name = ] 'object_name' ] 
     [ , [ @target_server = ] 'target_server' ] 
     [ , [ @has_error = ] has_error ] 
     [ , [ @status = ] status ] 
     [ , [ @date_posted = ] date_posted ]

Bağımsız değişkenler

  • [ @job_id= ] job_id
    The job identification number for which to return information.job_id is uniqueidentifier, with a default of NULL.

  • [ @job_name= ] 'job_name'
    The name of the job.job_name is sysname, with a default of NULL.

    Not

    Her iki job_id veya job_name belirtilmiş olması gerekir, ancak her ikisi de belirtilemiyor.

  • [ @operation= ] 'operation'
    The valid operation for the specified job.operation is varchar(64), with a default of NULL, and can be one of these values.

    Değer

    Açıklama

    HATASI

    Sunucu işlemi, hedef sunucunun defect asıl slayttan istekleri SQLServerAgent hizmet.

    SİLME

    Proje iş tüm bir işi kaldırır.

    EKLEME

    Tüm bir işlem ekler veya varolan bir işi yeniler iş işlemi.Bu iş tüm proje adımları ve zamanlamalar, (varsa) içerir.

    re-enlist

    Sunucu işlemini yoklama aralığına ve saat dilimini çoklu sunucu etki alanına dahil olmak üzere, liste bilgilerini, yeniden göndermek hedef sunucu neden olur.Hedef sunucu da redownloads MSXOperator ayrıntılar.

    küme ANKET

    Sunucu işlemi aralığı, hedef sunucular çoklu sunucu etki alanı yoklamak saniye cinsinden ayarlar.Belirtilmişse, value gerekli bir aralık değeri olarak yorumlanır ve arasında bir değer olabilir 10 to 28.800.

    BAŞLANGIÇ

    Başlatma işlemini yürütme isteği iş işlemi.

    DURDUR

    Proje işlem iş yürütmenin durdurma istekleri.

    EŞİTLEME-CVE-2006-saat

    Hedef sunucu, sistem saatinin çoklu sunucu etki alanı ile eşitlemek neden olan bir sunucu işlemi.Bu, pahalı bir işlem olduğundan, sınırlı sayıda ve daha seyrek olarak bu işlemi gerçekleştirin.

    GÜNCELLEŞTİRME

    Yalnızca güncelleştiren bir işlem iş sysjobs bilgi için bir iş, işi adımları veya değil zamanlamaları.Otomatik olarak adlandırılan sp_update_job.

  • [ @object_type= ] 'object_type'
    The type of object for the specified job.object_type is varchar(64), with a default of NULL.object_type can be either JOB or SERVER.For more information about valid object_typevalues, see sp_add_category (Transact-SQL).

  • [ @object_name= ] 'object_name'
    The name of the object.object_name is sysname, with a default of NULL.If object_type is JOB, object_nameis the job name.If object_typeis SERVER, object_nameis the server name.

  • [ @target_server= ] 'target_server'
    The name of the target server.target_server is nvarchar(128), with a default of NULL.

  • [ @has_error= ] has_error
    Is whether the job should acknowledge errors.has_error is tinyint, with a default of NULL, which indicates no errors should be acknowledged.1 tüm hataları onaylanmaz gösterir.

  • [ @status= ] status
    The status for the job.status is tinyint, with a default value of NULL.

  • [ @date_posted= ] date_posted
    The date and time for which all entries made on or after the specified date and time should be included in the result set.date_posted is datetime, with a default of NULL.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (hata)

Sonuç Kümeleri

Sütun adı

Veri türü

Açıklama

instance_id

int

Yönergenin kimlik numarası benzersiz bir tamsayı.

source_server

nvarchar(30)

Yönerge sunucusunun bilgisayar adını geldi.In Microsoft SQL Server version 7.0, this is always the computer name of the master (MSX) server.

operation_code

nvarchar(4000)

Yönerge kodu işlemi.

object_name

sysname

Yönerge tarafından etkilenen nesne.

object_id

uniqueidentifier

Yönerge (tarafından etkilenen nesne tanımlayıcı numarasıjob_id bir iş nesnesini veya bir sunucu nesnesi için 0x00) veya ( için belirli bir veri değerioperation_code.

target_server

nvarchar(30)

Hedef sunucu bu tarafından yüklenmek üzere yönergedir.

error_message

nvarchar(1024)

Hedef sunucu varsa, bu yönerge işlenirken bir sorunla karşılaştı hata iletisi (varsa).

NoteNote:
Tüm bir hata iletisi bloklar daha fazla hedef sunucu tarafından karşıdan yükler.

date_posted

datetime

Yönerge deftere nakledildiği tarih tablo.

date_downloaded

datetime

Yönerge, hedef sunucu tarafından karşıdan yüklendiği tarih.

Durum

tinyint

Işin durumu:

0 Değil = henüz karşıdan

1 Başarıyla karşıdan yüklenen =.

İzinler

Üyeleri bu yordamı varsayılan yürütmek izni sysadmin sabit sunucu rolü.

Örnekler

Aşağıdaki örnek, satırlarda listeler sysdownloadlist için NightlyBackups iş.

USE msdb ;
GO

EXEC dbo.sp_help_downloadlist
    @job_name = N'NightlyBackups',
    @operation = N'UPDATE', 
    @object_type = N'JOB', 
    @object_name = N'NightlyBackups',
    @target_server = N'SEATTLE2', 
    @has_error = 1, 
    @status = NULL, 
    @date_posted = NULL ;
GO