sometimes I need to move data from one database table to another table in different database. These tables are identic. So I am trying to make program in C# Winforms, but I cant figure it out. I think that I should use this:
INSERT INTO table2
SELECT *
FROM table1
WHERE condition;
But how can I execute this sql command when I need two connections? Or what is the right approach?
EDIT: They aren't on same server. Any other option than throught Linked servers?