CleanUpDistributionPublisherByName Method
后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The CleanUpDistributionPublisherByName method completely removes implementation of publications from the distribution database used by the named Publisher.
语法
object
.CleanUpDistributionPublisherByName(
Name
)
Parts
- object
Expression that evaluates to an object in the Applies To list.
- Name
String that specifies a Publisher by name.
Prototype (C/C++)
HRESULT CleanUpDistributionPublisherByName(
SQLDMO_LPCSTR szName);
备注
Use the CleanUpDistributionPublisherByName method to remove publication implementation when the Publisher is offline or otherwise not available.