Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 22 Feb 2008 @ 20:12:56 GMT


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


Subj:   Re: Stored Procedure error SPL1031
 
From:   Mohommod.Khan

Bill,

I don't think the Revoke command will work directly here as you are trying to code. I think what you need is to look on dynamic SQL using the SYSEXECSQL. Also notice the syntax. So some thing like this may work for you. I have not tested it but I think you got the idea....

     DECLARE STR VARCHAR(1000) DEFAULT '  ';
     DECLARE USERID  CHAR(30) DEFAULT '  ';
     -----
     --Start your Loop here ---

     DO
     SET STR= 'REVOKE LOGON ALL FROM   '
     || DORMANT.USERID
     || ';'   ;

     CALL DBC.SYSEXECSQL (:STR);

     END FOR;

     ------  END -----

Thanks, Mohommod



     
  <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