I have two databases in SQL Server 2012 with the same tables. So I have databases A
and B
with tables a, b, c, d
in both.
I would like to delete all the data from B.a
and copy the data from A.a
into B.a
. I would like to do this with all the tables, clear them out in B but keep the tables then refill them with the table data from A.
What is the best way to do this?