Skip to content

Commit 346d879

Browse files
Update enable-updating-subscrip_1.sql
Added the missing database-name argument
1 parent a4ee695 commit 346d879

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/relational-databases/replication/codesnippet/tsql/enable-updating-subscrip_1.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SET @publication = N'AdvWorksProductTran';
1414
SET @login = $(Login);
1515
SET @password = $(Password);
1616

17-
USE [AdventureWorks]
17+
USE [AdventureWorks2012]
1818
-- Enable transactional replication on the publication database.
1919
EXEC sp_replicationdboption
2020
@dbname=@publicationDB,
@@ -69,4 +69,4 @@ EXEC sp_addarticle
6969
@type = N'logbased',
7070
@source_owner = @owner,
7171
@destination_owner = @owner;
72-
GO
72+
GO

0 commit comments

Comments
 (0)