Top Banner
SQL Server SQL Server Replication Replication Transactional Replication from MSSQL 200x to MYSQL 5.x Thet Aung Min Latt [email protected] IT Director - Tbit Solution
21

SQL Server Replication Transactional Replication from MSSQL 200x to MYSQL 5.x

May 12, 2015

Download

Technology

Transactional Replication
from MSSQL 200x to MYSQL 5.x
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

SQL Server SQL Server ReplicationReplication

Transactional Replication from MSSQL 200x to MYSQL 5.x

Thet Aung Min [email protected] Director - Tbit Solution

Page 2: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Co presenterCo presenterKyaw Soe Thet

Senior web developer Tbit Solution

May Zune AungSenior web developer Tbit Solution

Page 3: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

SQL Server Replication?SQL Server Replication?

Page 4: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

SQL Server ReplicationSQL Server ReplicationSnapshot replication

Transactional replication

Merge replication

Page 5: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Snapshot replicationSnapshot replicationdistributes data exactly as it

appears at a specific momentdoes not monitor for updates to

the data

Page 6: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Transactional replicationTransactional replication starts with a snapshot of the

publication database objects and data

subsequent data changes and schema modifications in near real time

intermediate data stateshigh volume of insert, update, and

delete activitynon-SQL Server database

Page 7: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Merge replicationMerge replicationtracked with triggersserver-to-client environmentsclient receive data, make

changes offline, and later synchronize changes

Page 8: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Sample replicationSample replication

mssql

mysql

Changes at the web

Page 9: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Test enviromentTest enviromentWindows7MSSQL Server 2008MYSQL ODBC connecter 3.5

(http://dev.mysql.com/downloads/connector/odbc/3.51.html)

xampp (MYSQL 5.1.x, phpmyadmin)

Page 10: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Allow mysql userAllow mysql user

Page 11: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Install MYSQL ODBC Install MYSQL ODBC connecter 3.5connecter 3.5

Page 12: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

add MYSQL ODBC driver in add MYSQL ODBC driver in dsndsn

Page 13: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

SQL Server Management SQL Server Management StudioStudioStart it

Page 14: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Publication databasesPublication databases

Page 15: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Change Provider OptionsChange Provider Options

Expend -> linked servers -> Providers

right click "MSDASQL“,Nested querieslevel zero onlyallow inprocesssupports 'like' operator

Page 16: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Change Provider OptionsChange Provider Options

Page 17: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Step1Step1new query window Step1

Page 18: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Step2Step2query window Step2

Page 19: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Step3Step3query window Step3

Page 20: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

References:References: msdn.microsoft.com/en-us/library/ms152531.aspx

dbperf.wordpress.com/2010/07/22/link-mysql-to-ms-

sql-server2008/server2008/

www.ideaexcursion.com/2009/02/25/howto-setup-sql-

server-linked-server-to-mysql

www.mssqltips.com/sqlservertip/2300/introduction-to-

sql-server-heterogeneous-replication

www.codeproject.com/Tips/452732/MySQL-Database-

Replication-Procedure

akprogrammingblog.blogspot.com

Page 21: SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x

Questions?Questions?