|
Archives of the TeradataForumMessage Posted: Fri, 22 Feb 2008 @ 20:11:21 GMT
You can't reference a non-aliased cursor expression within the loop, so add an alias in your cursor specification e.g. SELECT UserName AS UserName To pass the name as a parameter, you'll have to use Dynamic SQL (and of course observe the restrictions for doing so) e.g. CALL DBC.SysExecSQL('REVOKE Logon ON ALL TO '||userid) And you probably need to declare USERID larger than 8 e.g DECLARE userid CHAR(30)
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||