sql server replication transactional replication from mssql 200x to mysql 5.x

Post on 12-May-2015

1.603 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

DESCRIPTION

Transactional Replication from MSSQL 200x to MYSQL 5.x

TRANSCRIPT

SQL Server SQL Server ReplicationReplication

Transactional Replication from MSSQL 200x to MYSQL 5.x

Thet Aung Min Lattthetaung@tbitweb.comIT Director - Tbit Solution

Co presenterCo presenterKyaw Soe Thet

Senior web developer Tbit Solution

May Zune AungSenior web developer Tbit Solution

SQL Server Replication?SQL Server Replication?

SQL Server ReplicationSQL Server ReplicationSnapshot replication

Transactional replication

Merge replication

Snapshot replicationSnapshot replicationdistributes data exactly as it

appears at a specific momentdoes not monitor for updates to

the data

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

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

changes offline, and later synchronize changes

Sample replicationSample replication

mssql

mysql

Changes at the web

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)

Allow mysql userAllow mysql user

Install MYSQL ODBC Install MYSQL ODBC connecter 3.5connecter 3.5

add MYSQL ODBC driver in add MYSQL ODBC driver in dsndsn

SQL Server Management SQL Server Management StudioStudioStart it

Publication databasesPublication databases

Change Provider OptionsChange Provider Options

Expend -> linked servers -> Providers

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

Change Provider OptionsChange Provider Options

Step1Step1new query window Step1

Step2Step2query window Step2

Step3Step3query window Step3

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

Questions?Questions?

top related