I’ve recently done a migration from a really old version of some application to the current version and i faced some problems while migrating databases.
I need a query that could help me to compare columns in two tables. I mean not the data in rows, I need to compare the columns itself to figure out, what changes in table structure I’ve missed.
have a look at Red Gate SQL Compare
Otherwise here is a start (for sql server)
you can have a look at the
tables if you want to go deeper..
[update]
Using the INFORMATION_SCHEMA tables