Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,


I would like to copy the data from one table to another between different servers.

If it is with in the same server and different databases, i have used the following


SQL
SELECT * INTO DB1..TBL1 FROM DB2..TBL1 (to copy with table structure and data)

INSERT INTO DB1..TBL1(F1, F2) SELECT F1, F2 FROM DB2..TBL1 (copy only data)



Now my question is copy the data from SERVER1 --> DB1--> TBL1 to SERVER2 --> DB2 -->TBL2



For example i deploy my VB.NET application together with MySQL Client Backend in 40 Client Work Stations on different places.

What i want to achieve here is make something like TRIGGERS or REPLICATE, Something like every client db queries such as (ADD,EDIT & DELETE) will be sent to a Master MySQL DB.

Honestly i havent done this before and it would be ,y first time using either REPLICATE ir TRGGER so i am not that aware of its respected use. But as some researches that i performed i have read that i need something like TRIGGERS that only problem here is that all seachers i have done pointed me from trigger where two tables are located in one SERVER.

Please help.
Posted
Comments
kumar2413 19-May-13 22:09pm    
Why don't you put the Insert statement first followed by Select statement
JMAM 20-May-13 0:55am    
Insert Into Statement - followed by select works only for 2 database table located in one server.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900