Fórum Problemas com Role na inserção de um user #50581
19/04/2005
0
[img:00f1cc904b]http://img154.echo.cx/img154/5094/problema4fu.th.jpg[/img:00f1cc904b]
e o codigo de inserção q uso eh esse:
with IBusers do begin Active := true; try UserName := Eusuario.Text; FirstName := Enome.Text; Password := Esenha.Text; AddUser; TRusuario.StartTransaction; with IBScript do begin Script.Clear; Script.add(´GRANT TOTAL TO ´ + Eusuario.Text); ExecuteScript; end; TRusuario.Commit; Incluir := true; finally Active := false; end; end;
Zunker
Curtir tópico
+ 0Posts
19/04/2005
Edilcimar
Gostei + 0
19/04/2005
Zunker
Gostei + 0
19/04/2005
Gandalf.nho
Gostei + 0
19/04/2005
Zunker
[URL=http://img245.echo.cx/my.php?image=problema9tz.jpg][img:86952f6ae1]http://img245.echo.cx/img245/2559/problema9tz.th.jpg[/img:86952f6ae1][/URL]
Gostei + 0
19/04/2005
Gandalf.nho
Gostei + 0
20/04/2005
Zunker
Script.add(´GRANT TOTAL TO ´ + Eusuario.Text + ´ WITH GRANT OPTION´);
Gostei + 0
20/04/2005
Gandalf.nho
Gostei + 0
20/04/2005
Zunker
Gostei + 0
20/04/2005
Gandalf.nho
Gostei + 0
20/04/2005
Zunker
Se eu logar com o SYSDBA e tirar esse ´WITH GRANT OPTION´, funciona mas somente com ele, o q eu preciso msm eh q eu possa criar usuarios, logado com qualquer usuario (naum necessariamente o dono do banco q nesse caso eh o SYSDBA)....xD
Gostei + 0
20/04/2005
Gandalf.nho
Gostei + 0
22/04/2005
Zunker
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)