?
Solved

Replication

Posted on 2011-09-13
6
Medium Priority
?
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

777 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