quering current user privileges

From: Plinio Conti (NOplinio.contiSPAM_at_libero.it)
Date: 12/23/03

  • Next message: akmal chaudhri: "Java Data Objects - BCS OOPS Evening Series 2004"
    Date: Tue, 23 Dec 2003 15:52:13 GMT
    
    

    My client app, after user authentication, wants to know if user (i.e. its just created connection)
    has the privileges to (for example) write on table xxx.

    This way I can (for example) disable a priori editing on table xxx.

    Obviouly I can't give to every user the rights to read system table (DBMS tables where user privileges are saved) only to permit them to check which rights they have.
    So I can't user a SELECT on system tables.

    I thought I could use
    Connection.getMetaData().getTablePrivileges()

    but it returns empty if user can't read system tables.

    Any solution?

    GRANT and REVOKE are standard SQL commands to do add/remove privileges, but I didn't find any SQL command to query (already granted) privileges....

    Plinio


  • Next message: akmal chaudhri: "Java Data Objects - BCS OOPS Evening Series 2004"

    Relevant Pages

    • RE: Upgraded to Word 2003, now I cant open files
      ... Novell NetWare Network Privileges Required to Run Word ... Description of File System Directory and File Rights ...
      (microsoft.public.word.application.errors)
    • =?windows-1252?Q?Re=3A_=93Libertarians=2C=94=2F_vs_Corporate_Power?=
      ... result is that these collectivist entities with their government- ... bestowed privileges have taken over our economy, ... the defenders of individual rights. ... distinction between Big Brother and God! ...
      (alt.gathering.rainbow)
    • Re: How to manage user access in FM7 and later
      ... > profiles and then use this groups to assign rights in FMP. ... > personal login system and a users file where a rights manager could ... > Take into account that the delegated rights manager knows nothing ... about everything you can do with homebuilt, individual privileges can be ...
      (comp.databases.filemaker)
    • Re: Karpal Singh is the seditious one
      ... "special" rights and privileges, whereas the other citizens are given ... privileges granted to citizens. ... because they gained Malaysian citizenship. ... citizenship to 2.7 million people of other races who joined the Malay ...
      (soc.culture.malaysia)
    • Re: Security infrastructure plan
      ... Chris, ... privileges and that should be sufficient. ... >Full - all rights to select, insert, update, delete, and DRI - System table ...
      (microsoft.public.sqlserver.security)