[CR #240376] When you use the Replication Server plug-in to generate data definition language (DDL) for a publication subscription, the database name for the with primary at clause is missing.
Workaround: Add the primary database name to the script.