Solved

Replication

Posted on 2011-09-13
6
215 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

In this article I will describe the Backup & Restore 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.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

695 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