Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / December 2005

Tip: Looking for answers? Try searching our database.

GRANT DROP on TABLE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kangaroo - 28 Dec 2005 20:01 GMT
Hi guys,

table "A" was created by user "USER1". Is there a way for USER1 to
grant access to DROP that table to user "B"?

The answer I heard so far was "only if user B has administrative
priviligies". Any evidence to the contrary?

Thanks
Bogdan
Pierre Saint-Jacques - 28 Dec 2005 21:43 GMT
I f you want to do this, the command is
db2 grant control on table <tbname> to USER1

Control privilege also gives implicitly ALL to USER1 but it is the only
privilege that allows the drop option, apart from the owner, definer of the
table.
HTH,  Pierre.

Signature

Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515

> Hi guys,
>
[quoted text clipped - 6 lines]
> Thanks
> Bogdan
Raja Shekar - 29 Dec 2005 05:35 GMT
Hi
There is no need for 'B' to have administrative authority to drop the
'A' table, provided 'B' has been given the privilage CONTROL  on that
table..But keep in mind that USER1 (owner of the table) can't give
CONTROL  privilage over the table which he owns. Only administrators
either SYSADMIN or DBADMIN only can give CONTROL  privilages to any
other user ids.
CONTROL  privilage gives SELECT,UPDATE,DELETE,INSERT,ALTER ...but not
DROP.

I hope i have anwered to ur question...
Bye
kangaroo - 29 Dec 2005 18:52 GMT
Pierre, Raja, thank you both, that's exactly what I was looking for.

Bogdan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.