Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 02 Jan 2008 @ 09:10:55 GMT

  <Prev Next>  
Next> Last>>  

Subj:   SP vs BTEQ
From:   sirisha.sebe


I have a requirement where I need to write a stored procedure which will take a database name as input parameters and

It should populate a table with the size and the number of records in the tables present in the input database name.

I can get the table size from the dbc.tablesize view.

But for determining the number of records in each table we need to write a Dynamic SQL which can be done by a stored procedure.

Another alternative is to use BTEQ using export and import and inserting into the table

Which of the above two is an efficient method?

I am thinking 2^nd one is efficient as there is no overhead of stored procedure.



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