Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Tools to compare two teradata's DB and find the differences - response (3) by Raja_KT

$
0
0

Hi,

Will this one help you? I love unix , so I always do it in bteq, exporting to a file and then do the work. Below script not tested.

 

  select case when tablekind = 'i' then 'show join index '

                 when tablekind = 'j' then 'show journal '

                 when tablekind = 'g' then 'show trigger '

                 when tablekind = 'p' then 'show procedure '

                 when tablekind = 'm' then 'show macro '

                 when tablekind = 't' then 'show table '

                 when tablekind = 'v' then 'show view '

 

            end || trim(databasename) || '.' || trim(tablename) || ' ;' (title '')

       from dbc.tables  dt

      where dt.tablekind in('i','j','g','p','m','t','v')

        AND DATABASENAME IN

            (

             'db1','db2',...

            )

        and trim(tablename) not like all ('al%','et%','lt%'','uv' etc)

        

      group by ...

      order by ...;

Cheers,

 

Raja


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>