Subject | Re: [IBO] Programmatically grant role to user |
---|---|
Author | jackmills75 |
Post date | 2006-03-01T17:17:24Z |
--- In IBObjects@yahoogroups.com, "Dmitry Beloshistov" <torin@...>
wrote:
As soon as I used ExecSQL it worked ok, I need to readup on the
difference between Open & ExecSQL.
Regards
Jack
wrote:
> Transaction.StartTransaction;Thank you Dmitry
> //---
> with IBOQuery do
> begin
> Close; SQL.Text:=Format('GRANT %s TO %s',[RoleName,UserName]);
> Execute;
> // ^^^^ No Open! Use Execute or ExecSQL instead.
> Close;
> end;
> //--
> Transaction.Commit;
> Transaction.Close;
>
As soon as I used ExecSQL it worked ok, I need to readup on the
difference between Open & ExecSQL.
Regards
Jack