Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 08 Nov 2004 @ 19:32:09 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Dependencies Query
 
From:   Dempsey, Mike

If you have Teradata Administrator you can select the Table (in the upper grid) then choose the 'References' menu from the right click (popup) menu.

Otherwise (if you have access to the dbc.TVM and dbc.DBase tables) you can run the following query:

     SELECT  DatabaseName,TVMName,TableKind
       FROM  dbc.TVM T,dbc.dbase D
       WHERE D.DatabaseId=T.DatabaseId
         AND CreateText LIKE '%"#D#"."#T#"%' (NOT CS)
       ORDER BY 1,2

Where #D# is the database name and #T# is the table name of the table you are looking for.

(Both of these will find Views, Macros, Triggers and Join Indexes that reference the Table.)


Mike Dempsey
Teradata Client Tools



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023