sp_delete_jobserver (Transact-SQL)
Belirtilen hedef sunucuyu kaldırır.
sp_delete_jobserver { [ @job_id = ] job_id | [ @job_name = ] 'job_name' } ,
[ @server_name = ] 'server'
Bağımsız değişkenler
[ @job_id= ] job_id
The identification number of the job from which the specified target server will be removed.job_id is uniqueidentifier, with a default of NULL.[ @job_name= ] 'job_name'
The name of the job from which the specified target server will be removed.job_name is sysname, with a default of NULL.Not
Her iki job_id veya job_name belirtilmiş olması gerekir; her ikisi de belirtilemiyor.
[ @server_name= ] 'server'
The name of the target server to remove from the specified job.server is nvarchar(30), with no default.server can be **(LOCAL)**or the name of a remote target server.
Dönüş Kodu Değerleri
0 (başarılı) veya 1 (hata)
Sonuç Kümeleri
None
İzinler
Bu saklı yordamı çalıştırmak için , kullanıcılar üyeleri olmalıdır sysadmin sabit sunucu rolü.
Örnekler
The following example removes the server SEATTLE2 from processing the Weekly Sales Backupsjob.
Not
Bu örnek, varsayar Weekly Sales Backups işi, daha önce oluşturuldu.
USE msdb ;
GO
EXEC sp_delete_jobserver
@job_name = N'Weekly Sales Backups',
@server_name = N'SEATTLE2' ;
GO