Solved

Replication

Posted on 2011-09-13
6
212 Views
Last Modified: 2012-05-12
I want to do replication, table names and column names in source and destination database is different. is this possible?
0
Comment
Question by:asrithap
6 Comments
 
LVL 5

Expert Comment

by:Brian Chan
ID: 36534126
My understanding is, No. it is not going to happen. That's because how replication works is by creating a snapshot of the replicated articles and copy to the other side (That is snapshot replication) and clearly the schema will be the same because of the snapshot mechanism. On the other hand, said transactional replication will reapply the log delta to the subscription. So again, schema need to be the same or the log transactions will not successful because object is not existed then.

Anyone else have a different idea with this?
0
 
LVL 9

Expert Comment

by:mimran18
ID: 36534300
0
 
LVL 4

Expert Comment

by:rbride
ID: 36534571
I must disagree with bpnchan. We do this all the time. If you are using transactional replication you can set it up so that the each replication event (insert / update / delete) goes via a stored procedure and this stored procedure does the mapping for you.

You create a publication and an article specifying a custom stored procedure:
http://msdn.microsoft.com/en-us/library/ms152489.aspx
http://technet.microsoft.com/en-us/library/ms173857.aspx

0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 5

Expert Comment

by:Brian Chan
ID: 36535263
@rbride, OK, that's interesting. Indeed, it sound pretty hardcore. Thanks for sharing it or I will never there is other possibility.

@asrithap, I have come across the book  Pro SQL Server 2008 Replication by Sujoy Paul, I remember that there is something mentioned about replication to be done via store procedure. That may be a good reference for your purpose.

0
 
LVL 4

Accepted Solution

by:
rbride earned 500 total points
ID: 36536062
@bpnchan: another possibility that might work is creating a view that matches the destination table and replicating from the view and not the table. I must admit that I haven't tried that yet, but it is possible to use views as articles.
0
 

Author Closing Comment

by:asrithap
ID: 37080383
partial answer
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question