Msg 14013, Level 16, State 1, Procedure sp_MSrepl_addpublication, Line 188 This database is not enabled for publication.
Msg 14013, Level 16, State 1, Procedure sys.sp_MSrepl_addsubscription, Line 302 [Batch Start Line 0] This database is not enabled for publication.I was getting these errors on different occasions when trying to execute a script in a database to add a publication and add a subscription. If the script is executed in a database that is not enabled for replication, then this error occurs.