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 > Dropping a view

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-03, 09:38
NNicole NNicole is offline
Registered User
 
Join Date: May 2003
Posts: 57
Dropping a view

Hello all!

I have a problem with dropping a view.
There is user One that have privileges on select on all tables in Schema1.

I want to give him a prividege to create a view that access tables mentioned above, and also priviledge to drop only views that he creates...

How I can do that?

Thank you in advance

NNicole
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 10:29
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Dropping a view

Look at the SQL Reference under the head Authorization ...

In brief:

Grant SELECT on the tables involved to user One. Also CREATEIN privilege on the schema. This will allow One to create views. Since he is the owner, he can drop only those views (unless he holds any of the higher authorities like DBADM, SYSADM etc)

HTH

Sathyaram



Quote:
Originally posted by NNicole
Hello all!

I have a problem with dropping a view.
There is user One that have privileges on select on all tables in Schema1.

I want to give him a prividege to create a view that access tables mentioned above, and also priviledge to drop only views that he creates...

How I can do that?

Thank you in advance

NNicole
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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