Home All Groups Group Topic Archive Search About


Author
16 Mar 2006 12:29 AM
mecn
Hi,

There is any ways(utilities) that I could compare the data between
tables(same structure).
in sql 2k sp4.

Thanks,

Author
16 Mar 2006 12:47 AM
Andrew J. Kelly
You can use a tool from www.red-gate.com to compare the schema or the data
but there are no built in ways to do this.

--
Andrew J. Kelly  SQL MVP


Show quoteHide quote
"mecn" <mecn2***@yahoo.com> wrote in message
news:uKSroCJSGHA.5736@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> There is any ways(utilities) that I could compare the data between
> tables(same structure).
> in sql 2k sp4.
>
> Thanks,
>
>
Are all your drivers up to date? click for free checkup

Author
16 Mar 2006 12:07 PM
sualeh.fatehi
If you are willing to use a Java-based tool in your environment, you
can use SchemaCrawler, a free open-source tool that can compare schemas
as well as data. SchemaCrawler is a command-line tool to output your
database schema and data in a readable form. The output is designed to
be diff-ed with previous versions of your database schema.

http://schemacrawler.sourceforge.net/

All you will need is a JDBC driver, and any diff tool such as WinMerge.

Sualeh Fatehi.
Author
16 Mar 2006 12:33 PM
SQLpro [MVP]
mecn a écrit :
> Hi,
>
> There is any ways(utilities) that I could compare the data between
> tables(same structure).
> in sql 2k sp4.
>
> Thanks,
>
>
Just a SQL Query !!!!

SELECT *
FROM   TABLE1 T1
WHERE  NOT EXISTS(SELECT *
                   FROM   TABLE1 T1
                   WHERE  T1.COL1 = T2.COL1
                     AND  T1.COL2 = T2.COL2
                     AND  T1.COL3 = T2.COL3
                   ...
                   )

A +

--
Frédéric BROUARD, MVP SQL Server, expert bases de données et langage SQL
Le site sur le langage SQL et les SGBDR  :  http://sqlpro.developpez.com
Audit, conseil, expertise, formation, modélisation, tuning, optimisation
********************* http://www.datasapiens.com ***********************
Author
16 Mar 2006 2:15 PM
mecn
Thanks all
I'll try all


Show quoteHide quote
"mecn" <mecn2***@yahoo.com> wrote in message
news:uKSroCJSGHA.5736@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> There is any ways(utilities) that I could compare the data between
> tables(same structure).
> in sql 2k sp4.
>
> Thanks,
>
>

Bookmark and Share