|
|
Archives of the TeradataForum
Message Posted: Fri, 30 Mar 2001 @ 10:59:35 GMT
Subj: | | Re: ClearPeakDisk and PeakSpoolSpace |
|
From: | | Ralf Brinkmann |
Hi,
here's a macro generating the desired SQL to fullfil your task. You'll have to remove the blanks...
Hope this helps
Ralf Brinkmann
replace macro fibd.ClearPeakPerson (username char(30)) as (
select 'UPDATE DBC.DATABASESPACE SET PEAKSPOOLSPACE=0 WHERE DATABASEID='''
(title''), databaseid, '''XB;'(title' ')
from dbc.databases2 where databasename=:username;
);
| |