Aracılığıyla paylaş


Sp_scriptpublicationcustomprocs (Transact-SQL)

Scripts the custom INSERT, UPDATE, and DELETE procedures for all table articles in a publication in which the auto-generate custom procedure schema option is enabled.sp_scriptpublicationcustomprocs is particularly useful for setting up subscriptions for which the snapshot is applied manually.

Konu bağlantısı simgesiTransact-sql sözdizimi kuralları

Sözdizimi

sp_scriptpublicationcustomprocs [ @publication = ] 'publication_name'

Bağımsız değişkenler

  • [ @ yayın=] 'publication_name'
    Is the name of the publication.publication_name is sysname with no default.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (başarısız)

Sonuç Kümeleri

Bir sonuç küme döndürür oluşan tek bir nvarchar(4000) sütun.Formları eksiksiz create procedure sonuç kümende deyim özel saklı yordam oluşturmak gerekli.

Açıklamalar

Özel yordamlar değil makaleler için vermeyecekleri özel yordam (0x2) şema seçeneği otomatik olarak oluşturur.

Aşağıdaki yordamlar tarafından kullanılan sp_scriptpublicationcustomprocs abone yordamları oluşturmak ve doğrudan yürütülmelidir değil:

sp_script_reconciliation_delproc

sp_script_reconciliation_insproc

sp_script_reconciliation_vdelproc

sp_script_reconciliation_xdelproc

sp_scriptdelproc

sp_scriptinsproc

sp_scriptmappedupdproc

sp_scriptupdproc

sp_scriptvdelproc

sp_scriptvupdproc

sp_scriptxdelproc

sp_scriptxupdproc

İzinler

Execute izni için verilen ortak; bir yordam güvenlik denetimi, üyelerine erişimi kısıtlamak için bu saklı yordam içinde gerçekleştirilen sysadmin sabit sunucu rolü ve db_owner sabit veritabanı rolü geçerli veritabanında.