If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > User privileges (Newbie question)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-04, 09:25
dstachon dstachon is offline
Registered User
 
Join Date: Jun 2003
Location: Ottawa
Posts: 105
User privileges (Newbie question)

Hi,

Without actually attempting either an UPDATE, INSERT, SELECT or DELETE on a certain table, how can I determine what operations I have the privilege to perform on that object?

(DB2 7.2 on AIX)

thanks.
Reply With Quote
  #2 (permalink)  
Old 09-22-04, 09:36
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
select * from syscat.tabauth where grantee='YOURUSERNAME' and tabschema='YOURSCHEMA' and tabname='YOURTABLE';
Reply With Quote
  #3 (permalink)  
Old 09-22-04, 09:43
dstachon dstachon is offline
Registered User
 
Join Date: Jun 2003
Location: Ottawa
Posts: 105
quick!

great thanks.....you've improved my opinion of Toronto ;-)
Reply With Quote
  #4 (permalink)  
Old 09-22-04, 10:07
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by dstachon
.....you've improved my opinion of Toronto ;-)
Well, you've confirmed my opinion of Ottawa
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On