Subject | Re: [ib-support] New User |
---|---|
Author | Hidayat Henokh |
Post date | 2002-03-07T01:31:23Z |
> ib_Script.SQL.Clear;how to use this script in Stored Procedure?
>
> with ibConnection.SchemaCache do
> begin
> for ii := 0 to TableNames.Count - 1 do
> ib_Script.SQL.Add ( 'GRANT ALL ON ' + TableNames[ii] + ' TO
> <NEW_USERNAME>;' );
> for ii := 0 to ViewNames.Count - 1 do
> ib_Script.SQL.Add ( 'GRANT ALL ON ' + ViewNames[ii] + ' TO
> <NEW_USERNAME>;' );
> for ii := 0 to ProcedureNames.Count - 1 do
> ib_Script.SQL.Add ( 'GRANT EXECUTE ON ' + ProcedureNames[ii] + '
> TO <NEW_USERNAME>;' );
>
> ib_Script.Execute;
>
> end;
>
>
TIA
Hidayat