Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Compare columns and INDEXES Between SQL Tables

$
0
0

I have a process where I have several tables such as 200 tables eg TABLE1_Current, TABLE2_CURRENT and so on.. Each table also has a backup table called TABLE1_Backup, TABLE2_Backup  and so on.   Like that I have 200 sets of tables, each has its onw _Backup   TABLE. What I need to do is compare the _Current tables to the _Backup   tables for eg compare the TABLE1_Current to the TABLE1_Backup table and see if there is difference in the datatypes,column lengths, indexes between these tables.

Any advise how to programatically check for this?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>