|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Table comparison
Hi,
There is any ways(utilities) that I could compare the data between tables(same structure). in sql 2k sp4. Thanks, 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. -- Show quoteHide quoteAndrew J. Kelly SQL MVP "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, > > 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. mecn a écrit :
> Hi, Just a SQL Query !!!!> > There is any ways(utilities) that I could compare the data between > tables(same structure). > in sql 2k sp4. > > Thanks, > > 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 *********************** 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, > >
Other interesting topics
Deadlock problem with insert trigger
enable advanced performance - no UPS Supporting user-defined "columns" with eye to SQLRS "Timeout Expired" on large table change MSDE 2000 problems with linked server Can you share SQL Server registration across different machines? Installing SQL Server 2005 Q: Diagram in SQL Server Distributed Partioned Views between different SS versions transactional replication for web nodes |
|||||||||||||||||||||||