Merge Replication adding Rowguid manually
-
03 April 2012 13:07
Is it a good practice to have a rowguid with rowguidcol property in a table permanently for merge replication..??
How is it been handled during backup and restore of publisher, distributor or subscriber..??
- Kerobin
- Diedit oleh KEROBIN 03 April 2012 13:07
Semua Balasan
-
03 April 2012 13:47Moderator
Yes it is. However you can use this column for your own primary key if you want.
Merge replication will handle uniqueness.
This key/column is not a problem for backup/restores the way identity columns can be.
looking for a book on SQL Server 2008 Administration? http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search? http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941
-
04 April 2012 5:29Thanks for your reply Hilary. I'm also wondering what is the use of keep_replication while doing DB restore operation and how it works..??
- Kerobin
- Diedit oleh KEROBIN 04 April 2012 5:29
-
05 April 2012 6:34Moderator
Hi Kerobin,
The KEEP_REPLICATION option is used to setting up replication to work with log shipping. It prevents replication settings from being removed when a database or log backup is restored on a standby server. Specifying this option when restoring a backup with the NORECOVERY option is not permitted.
For more information, please refer to here http://msdn.microsoft.com/en-us/library/aa238405(v=sql.80).aspxRegards, Amber zhang
-
09 April 2012 7:25The article is for SQL Server 2000.. Is it the same for SQL server 2008 R2 as well..??
- Kerobin
- Diedit oleh KEROBIN 09 April 2012 7:25
-
09 April 2012 8:48Moderator
Hi Kerobin,
Thank you for your update. For SQL Server 2008 R2 you can refer to this article .
Meanwhile you can refer to Preserve the replication settings section this article Restore Database (Options Page) http://msdn.microsoft.com/en-us/library/ms188223(v=sql.105).aspxRegards, Amber zhang
- Ditandai sebagai Jawaban oleh amber zhangModerator 11 April 2012 3:04
-
09 April 2012 13:27Moderator
The keep_replication switch is used to preserve replication metadata when restoring a database. It can be used for log shipping, but it can also be used for debugging, or just querying replication metadata from another source other than the publication database.looking for a book on SQL Server 2008 Administration? http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search? http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941
- Ditandai sebagai Jawaban oleh amber zhangModerator 11 April 2012 3:04