Q:

How to write same value into 2 Databases?

I need to insert the same values into 2 different databases.
What is the best approach in order to do this ? Can I somehow make this using some configurations tweaks, or creating code for each operation is the only way?
I'm mainly using Java + MSSQL. 

A:

I think that this is related to database replication. Since you added sql tag, I can only provide a reference for MySQL: http://dev.mysql.com/doc/refman/5.0/en/replication.html
Edit:
You have added MSSQL tag, here are the docs: http://technet.microsoft.com/en-us/library/ms151198.aspx

