Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alter Table that is not yours

Status
Not open for further replies.

kim1

Programmer
Joined
Nov 7, 2001
Messages
77
Location
CA
Hi,

Can I set some permission to be able to Alter Table that is not mine.

Ex. My account is called AcctA (with only ddladmin and securityadmin database role).

AcctB create a table A, and I (AcctA) want to alter it.

Can I, even if I am not the owner of the table A?

Kim Kim
 
Only if AcctB gives you permission to.

Chip H.
 
How can AcctB set the permission so the AcctA can alter table? Thank you for your help Chip.H.
Kim
 
AcctB runs this SQL:

GRANT ALTER TABLE ON tableA TO AcctA

But according to the chart in Books Online, the db_ddladmin role already has the Alter Table privledge.

BTW, AcctB will have rights to run the GRANT statement because they are the owner of the object. It can also be run by users with the db_securityadmin role.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top