Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Replication (2008)
 Replication between 2 databses havin Source and De

Author  Topic 

asritha
Starting Member

4 Posts

Posted - 2011-06-10 : 13:25:51
I have a criteria to do replication on Sql Server 2008 R2.
Below are the points to be considered while doing Replication.
Can anyone guide me how to achieve ?

1. Source and Destination Tables are different Name

2. Source and Destination Filed names are different

3. Source and Destination field type different ... not all the time...need to check source field type is bit and destination field type is tinnyInt

4. Check how insert, update and delete will work

5. How do we setup the replication when databases are on different servers and replication on different server

Ex: DB1 on Server 1, DB2 on server 2 and Replication on Server3

Need to check how do we setup the credentials etc ......

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-06-10 : 14:32:20
Table names and field names aren't a difficult problem, but are a very bad idea.

You can set this in the publication properties.

Data type differences...never did that, might fail altogether, might work but fail on certain updates. VERY bad idea.

If you're trying to insert data to not-matching tables, better to use an SSIS package for this (or T-SQL script) so you can manage the transformations.
Go to Top of Page

asritha
Starting Member

4 Posts

Posted - 2011-06-15 : 10:31:16
I am new to SSIS.Can you please guide me how to go about using SSIS to achieve the task? Thanks in advance.
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-06-15 : 10:56:21
This is a good place to start.

Also, you can use the data import wizard and save the package to see what it generates.
Go to Top of Page
   

- Advertisement -