in reply to Comparing tables over multiple servers
It depends on the DBMS you are using, but you can get some ideas from Remote MySQL table comparison. It can get you started on the general principles.