Board index » delphi » grant access to all tables in script
Bob Bedford
![]() Delphi Developer |
Tue, 13 Jan 2004 16:32:55 GMT
|
Bob Bedford
![]() Delphi Developer |
Tue, 13 Jan 2004 16:32:55 GMT
grant access to all tables in script
I'm now on IB6...
I do use a script for creating my database. I won't let the SYSDBA user I would like, in my SQL script that create the DB, create an other user, I would like also create an user with select access to all tables. How can I do it with a simple statement ??? Thanks Bob |
Martijn Tonie
![]() Delphi Developer |
Wed, 14 Jan 2004 01:19:31 GMT
Re:grant access to all tables in scriptYou can create a 'grant all on tables' script like this: select 'grant all on ' || rdb$relation_name || ' to user username;' Alternatively, InterBase Workbench offers you the concept of 'Grant -- Upscene Productions "This is an object-oriented system. Quote"Bob Bedford" <bedfo...@NOSPAMhotmail.com> wrote in message Quote> I'm now on IB6... |
Sergio Samayo
![]() Delphi Developer |
Wed, 14 Jan 2004 01:17:33 GMT
Re:grant access to all tables in scriptYou can't rename SYSDBA nor delete it. Also, you can't create users via SQL (as you can on Oracle). -- |
Team
![]() Delphi Developer |
Wed, 14 Jan 2004 01:30:11 GMT
Re:grant access to all tables in scriptQuoteBob Bedford wrote: based, so you need to use the API to create a user. The easiest way is to use TIBSecurityService from IBX, provided you're using a SuperServer server. Quote> How can I do it with a simple statement ??? Karwin below my .signature. -Craig -- From: 12:00 AM Another option is this: SELECT 'GRANT ALL ON ' || RDB$RELATION_NAME || ' TO VCEBAN;' Then save the output of that query and run it as a SQL script. I'll leave the procedure case as an exercise for you. :) Bill Karwin QuoteVictor Ceban wrote: |
Bob Bedfor
![]() Delphi Developer |
Fri, 16 Jan 2004 22:42:06 GMT
Re:grant access to all tables in scriptthanks Craig, but I still can't get the admin tab.... "Craig Stuntz (TeamB)" <cstuntz@no_spam.vertexsoftware.com> a crit dans le Quote
|
Team
![]() Delphi Developer |
Sat, 17 Jan 2004 00:29:43 GMT
Re:grant access to all tables in scriptQuoteBob Bedford wrote: require rights to anything. If you're not seeing the admin tab, here's what I'd recommend. o Uninstall IB client. -Craig -- |
Bob Bedfor
![]() Delphi Developer |
Sat, 17 Jan 2004 14:11:57 GMT
Re:grant access to all tables in scriptSo, I didn't know, but the version of IBX shipped with Delphi 5 ent doesn't seems to have those elements: I reintalled Delphi, I did what you said but nothing came out...And I've seen on thread that we can download new IBX component from Borland, so is was I did, I installed and runned Delphi again....and I have the tabs... Thanks for help. Bob "Craig Stuntz (TeamB)" <cstuntz@no_spam.vertexsoftware.com> a crit dans le Quote
|
1. GRANT EXECUTE WTIH GRANT OPTION ON IB6
2. chaining scripts (calling a script from a script)
3. How to - generate CREATE TABLE script based on existing table in Stored Procedure
4. Grant rights to all tables in a Interbase system
5. Grant/Deny access to Internet within a windows lan
6. Table ownership and granting rights.
7. Grant rights to maintain table