Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 27 Mar 2006 @ 22:29:53 GMT


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


Subj:   Objectproperty check
 
From:   Patel,Harshida

Is it possible in teradata to check if the object exists?

Something similar to sql server.

     if exists (select * from dbo.sysobjects where id =
     object_id(N'[dbo].[tablename]') and OBJECTPROPERTY(id, N'IsUserTable') =
     1)
     drop table [dbo].[ tablename]
     GO

Can somebody please help?

Thanks



     
  <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: 27 Dec 2016