I have a C # .net application for Windows that uses a database in Microsoft SQL Server 2008. During the deployment for the first time for our clients, we create a copy of our database and deploy it to the clients, the remote server along with the user interface application. The client database may be in SQL Server 2005 or later.
Over time, the UI application and its associated database have made many changes. Since this is a thick client application, the client database does not synchronize with our latest database, and, unfortunately, no one ever took notes on all the changes made. So my problems are as follows:
How to find the missing columns in a database table in a customer database compared to my database? If there are any?
How to find missing primary / unique constraints in a database table in a client database compared to my database? If there are any?
How to find the missing indexes in the database table existing in the customer database compared to my database? If there are any?
Please keep in mind that the size of the client database can vary from 10 to 100 GB, so I cannot plan to simply drop all client tables and recreate them.
source
share