We have 2 databases: QMS and QMS_Chennai.
QMS contains these tables:
tbl_table1
tbl_table2
tbl_table3
QMS_Chennai contains these tables:
tbl_table1
tbl_table2
The tables in the QMS database contain a few columns which are not in the same tables in the QMS_Chennai database.
I need to check what tables are present in both databases and add the additional columns to tables in the QMS_Chennai database from QMS.
Need to write some query as we have to face this scenario number of times in case of different databases. We are using SQL Server 2008 R2
Thanks