sp_syscollector_delete_collection_item (Transact-SQL)
Bir koleksiyon öğesi, bir tahsilat kümesinden siler.
sp_syscollector_delete_collection_item [[ @collection_item_id = ] collection_item_id ]
, [[ @name = ] 'name' ]
Bağımsız değişkenler
[collection_item_id =] collection_item_id
Is the unique identifier for the collection item.collection_item_id is int with a default of NULL.collection_item_id must have a value if name is NULL.[adı =] ' name'
Is the name of the collection item.name is sysname with a default value of NULL.name must have a value if collection_item_id is NULL.
Dönüş Kodu Değerleri
0 (başarılı) veya 1 (hata)
Remarks
sp_syscollector_delete_collection_item msdb veritabanını sistem bağlamında çalıştırmalısınız.Koleksiyon öğeleri sistem tahsilat kümelerinden silinemiyor.
Koleksiyon küme koleksiyonu içeren madde kesti ve bu işlem sırasında yeniden.
İzinler
Bu yordamı çalıştırmak yürütmek izni) ile (dc_admin sabit veritabanı rolü üyeliği gerekir.
Örnekler
Aşağıdaki örnekte, öğe adlı bir koleksiyon silinir. MyCollectionItem1.
USE msdb;
GO
EXEC sp_syscollector_delete_collection_item @name = 'MyCollectionItem1';