Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Replicate some SQL Server tables using SSIS

$
0
0

I have two SQL servers, one source SQL 2012 and one destination SQL 2005. All developers works on SQL 2012 and at 23:00, 10 tables are replicated to SQL 2005 using SSIS, so, the structure and the content of the source tables are the same in destination SQL.

I have to use SSIS because both SQL are in a different location, with different domain and different administrators.

The SSIS was created using SQL server wizard: right click on database > tasks > Export data. Then, select source, select SQL destination, select tables to copy and also select "drop table", because we need to update table structure too. Then, save SSIS and Schedule it using SQL Server Agent. This works fine everyday.

My problem is: the replica works fine but no primary key, keys or index is created in destination SQL tables. Statistics, columns and rows are perfectly created. Am I missing something?

Thank you.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>