all groups > sql server replication > march 2005 >
You're in the

sql server replication

group:

Replication / Restores and initialize schema question



Replication / Restores and initialize schema question frankm
3/14/2005 1:51:25 PM
sql server replication: I have a database with 3 added filegroups/files. The restore with move,
moves the logical filename to a specifiic physical file.
Once restored the db objects should be restored to their proper filegroups.

Once I run the snapshot, can all of the schema and data be pushed to the
PRIMARY/DEFAULT filegroup?
Because this is what appears to be happening, all objects are being pushed
into the PRIMARY/DEFAULT filegroup.
In published db, objects are in their correct filegroups, in the subscriber
db, they are all in the PRIMARY/DEFAULT.

Does this sound right... I posted a database restore question to the server
ng. I'm wondering if replication could cause this.
This doesn't make any sense to me...

Re: Replication / Restores and initialize schema question frankm
3/14/2005 2:34:14 PM
Then it sounds like replication is actually pushing the schema and data to
the PRIMARY/DEFAULT filegroup.
I'm still trying to understand why it does that?

Looking at the "delete existing data" selection - this appears to be per
table.
Is there a way to set this globally? I'd hate to select that for 700 tables
individually.


[quoted text, click to view]

Re: Replication / Restores and initialize schema question frankm
3/14/2005 2:37:39 PM
oops - should have looked further down - looks like I can set it globally in
"Article Defaults"



[quoted text, click to view]

Re: Replication / Restores and initialize schema question Hilary Cotter
3/14/2005 3:21:27 PM
no, you will have to then apply your schema through a pre-snapshot command,
and ensure you use the delete existing data in the snapshot tab of the table
article properties.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

AddThis Social Bookmark Button