I am trying to copy changes from DatabaseA to DatabaseB, but I donβt know exactly what the changes are.
Is there an SQL script around that will find objects that differ between databases and then generate a script to update DatabaseB to match DatabaseA?
I am using SQL 2005 and I do not want to lose existing data in DatabaseB
There are Red Gate circuit and data comparison tools that do exactly what you are looking for. There are others on the market, such as Apex SQL Compare. But if you are fortunate enough to have a version of Visual Studio 2010 Premium or Ultimate, there is a comparison tool built into these versions.
http://www.apexsql.com/default.aspx
http://www.red-gate.com/products/sql-development/sql-compare
http://msdn.microsoft.com/en-us/library/dd193250.aspx
Otherwise, you will have to use linked servers and many queries to INFORMATION_SCHEMA.
Some of these software tools that you can use on a trial basis and are likely to get what you need without buying a full license.
Try DBComparer .
I used SQL Comparison and SQL Data Comparison with Red Gate Software , and they work like a charm. I do not assume that there is a script to do the same work, because if it existed, then there would be no use and market for these products.
I am using AdeptSQL Diff. This is a commercial product found at www.adeptsql.com . I think the trial license is designed for 30 days or 50 startups.
Source: https://habr.com/ru/post/906760/More articles:STL, iostream, new, delete in C / C ++ for CUDA - c ++CSS not showing in Pisa pdf in Django - pythonJAXB - empty tags without xsi: nil - javaAndroid: Get the day of the week from a date? - javaHow to extract data from a text file using R or PowerShell? - rhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/906761/ruby-is-there-a-keyword-to-call-a-method-from-within-itself-analogous-to-super&usg=ALkJrhgtFOiElLHIiRCgQ78rzHKNjWrdsAWhich Android SDK do I need? - androidAda compiler for Arm processors - compiler-constructionGetting two-way binding to $ data inside a template - knockout.jsDoes an HQL query always get into the database and get the results? - javaAll Articles