此数据库尚未启用发布功能

此数据库尚未启用发布功能
USE GlobalSales;
GO

EXEC sp_helpmergepublication GlobalSales
EXEC sp_helppublication GlobalSales
EXEC sp_helppublication_snapshot GlobalSales
GO

-- Execute this batch at the Publisher.
DECLARE @publication AS sysname;
DECLARE @subscriptionDB AS sysname;
DECLARE @subscriber AS sysname;
SET @publication = N'Mitjab-Notebook\SQL2008'; 
SET @subscriptionDB = N'GlobalSales'; 
SET @subscriber = N'SERVER\SQL2008';

-- At the Publisher, register the subscription, using the defaults.
USE [GlobalSales]
EXEC sp_addsubscription 
    @publication = @publication, 
    @subscriber = @subscriber, 
    @destination_db = @subscriptionDB, 
    @subscription_type = N'pull', 
    @update_mode = N'failover';
GO

但我得到:

消息 14013,级别 16,状态 1,过程 sp_MSrepl_helppublication_snapshot,第 29 行此数据库未启用发布。

答案1

您无法使用 Express Edition 进行复制(作为发布者)

答案2

然后启用发布,或者在启用发布的数据库上运行此操作。查看复制选项以配置发布和分发。

相关内容