Re: how to find differences between production and test databases




"Florence" <Florence@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7C5CF617-A44E-4BDF-8A87-8CD03A1B0B9F@xxxxxxxxxxxxxxxx
We have two SQLServer databases on different machines. One is our
production
database and the other our test/development database.

At the moment both databases have exactly the same metadata i.e. tables
and
columns.

The production database differs in a handful of rows. Some rows have been
inserted, deleted and a few modified.

How can we with a few SQL statements can I find out what rows have been
added and what rows have been modified between our test and production
databases?

If there are more than a few tables, I'm not sure how it could be done with
minimal SQL.

There is a great suite of tools available called SQL Compare (that includes
SQL Data Compare) from Redgate (http://www.red-gate.com/index.htm) I bought
the suite a couple of years ago; it has since paid for itself many, many
times over.


-Mark




--



.



Relevant Pages

  • RE: help with emergency--sql server 2000 sp4
    ... I told my myself, I need to take a look at my testing database, I suddenly I ... some my production program gives invalid object error messge. ... We have two database instances on our server. ... Your ASP program failed to execute DML operations on your SQL Server after ...
    (microsoft.public.sqlserver.odbc)
  • Re: Restoring data
    ... 'Since you can't restore SQL2K db to 7,0, you won't have a starting point ... Tibor Karaszi, SQL Server MVP ... > database. ... >>> addresses between the existing production server and the ...
    (microsoft.public.sqlserver.setup)
  • Re: LOB segment space usage
    ... SQL> SET SERVEROUTPUT ON ... SQL> SELECT * FROM V$VERSION ... PL/SQL Release 10.2.0.3.0 - Production ... You have UTF and your database charset that's why your LOBs have 2 ...
    (comp.databases.oracle.server)
  • Oracle DBA, Denver, Branta Group Contract
    ... Oracle DBA, Denver, Branta Group Contract ... sites focusing on database performance and availability. ... first and second tier resolution of production issues. ... procedures supporting a mission critical 24x7 production environment ...
    (comp.databases.oracle.marketplace)
  • Oracle DBA, San Jose, Branta Group Contract
    ... Oracle DBA, San Jose, Branta Group Contract ... sites focusing on database performance and availability. ... first and second tier resolution of production issues. ... procedures supporting a mission critical 24x7 production environment ...
    (comp.databases.oracle.marketplace)