Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Fri, 30 Aug 2013 @ 16:29:52 GMT

  <Prev Next>   <<First <Prev

Subj:   Re: How to check whether PI has STATS collected
From:   Geoffrey Rommel

  All I want to check whether we can check whether or not STATS are collected on PI(Not other index or columns) of a table by passing TableName and DatabaseName?  

     select ...stuff...
     into :sp_variable
     from dbc.IndexStats [or other view with stats information, depending on your release]
     where databasename = :DatabaseName ?and tablename = :TableName ?and IndexNumber = 1;

If IndexStatistics is non-null on at least one row, stats have been collected.

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