Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Schema Only Snapshot

 
   Database Help (Home) -> Replication RSS
Next:  2 databases merge at night  
Author Message
Jack Harris

External


Since: Aug 29, 2008
Posts: 2



(Msg. 1) Posted: Fri Aug 29, 2008 9:19 am
Post subject: Schema Only Snapshot
Archived from groups: microsoft>public>sqlserver>replication (more info?)

Is it possible to create a snapshot for merge replication that would apply
the changes necessary for replication without deleting the data in the
subscriber database?

The scenario is this - a client application has a database that will become
the subscriber. That database has existing data that needs to be sent to the
publisher, but may not have ROWGUID columns defined for all the publication
tables. Using a snapshot to initialize the subscription creates the necessary
columns, but deletes all the data in the subscriber database (it drops the
table and recreates it). I can set the publication articles not to alter
names in use, but then the ROWGUID columns don't get set up.

If there was a way to create the snapshot that would just apply the schema
changes without clearing the existing data that would be great, but I'm
expecting that the answer to that is probably 'no, it can't be done'. But I
thought I would check here first.

Thanks
--
Jack Harris
Seminars and Systems

 >> Stay informed about: Schema Only Snapshot 
Back to top
Login to vote
Paul Ibison

External


Since: Oct 03, 2008
Posts: 104



(Msg. 2) Posted: Fri Oct 03, 2008 5:34 am
Post subject: Re: Schema Only Snapshot [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes - you need to use the COLUMNPROPERTY function with the IsRowGuidCol
property:

SELECT * FROM information_schema.columns
WHERE COLUMNPROPERTY( OBJECT_ID(table_name),column_name,'IsRowGuidCol') = 1

HTH,
Paul Ibison (www.replicationanswers.com)

 >> Stay informed about: Schema Only Snapshot 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Snapshot replication - I really need some help with replication. I have over 150 remote sites with MSDE db's that I want to replicate back to our headquarters. I want to keep each db separate but have them on one SQL 2005 server. I don't want to get into details as to why..

Replication Snapshot using all the memory. - Hi I am having database size =300 GB and Ram size 32 GB during snapshot in replication it is using all my memory basically it is showing 5 MB during that time my system stop respond for the other instances.I cant allocate fixed memory to each instance...

The initial snapshot for publication '' is not yet available - SQL 2005 - SP1 We had a server reboot last night and now my replication-monitor with message 'The initial snapshot for publication '' is not yet available on Distributor-Subscriber tab and is NOT replicating to subscriber. Upon debugging I found, my..

Replication error in Snapshot publication - Hi, I built a database replication between 2 SQL 2000 servers in our domain (both with SP3). I used snapshot publication and it worked for a few days. But one day the Distribution Agent task failed with the following, Error message: Line 95:..

Snapshot: Not enough server storage is available to process - I have set up SQL Server transactional replication when I start the snapshot I receive the error listed below. Error: Not enough server storage is available to process this command. Please help me resolve this error. Thank You,
   Database Help (Home) -> Replication All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]