Applies To: SQL Server 2014, SQL Server 2016 Preview
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Removes replication settings if restoring a database to the non-originating server, database, or system that is otherwise not capable of running replication processes. When restoring a replicated database to a server or database other than the one where the backup was taken, replication settings cannot be preserved. On the restore, the server calls sp_restoredbreplication directly to automatically remove replication metadata from the restored database.
sp_restoredbreplication [ @srv_orig = ] 'original_server_name' , [ @db_orig = ] 'original_database_name' [ , [ @keep_replication = ] keep_replication ] [ , [ @perform_upgrade = ] perform_upgrade ]