March 26, 2015 at 1:38 pm
How to grant DROP table permission within a database to an SQL login. I could see in Databae properties-> permission tab, there is an option to grant CREATE TABLE, EXECUTE permission etc, but not DROP table permission. How to grant it?
March 26, 2015 at 4:05 pm
You won't be able to get that granular from my experience. You will have to give more broad access to a database.
March 26, 2015 at 8:20 pm
Create a stored proc to with constraints to limit what someone can drop. Add EXECUTE AS OWNER to the proc and then give the user permissions just to run the proc.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2015 at 6:35 am
balasach82 (3/26/2015)
How to grant DROP table permission within a database to an SQL login. I could see in Databae properties-> permission tab, there is an option to grant CREATE TABLE, EXECUTE permission etc, but not DROP table permission. How to grant it?
To drop a table, the user needs either CONTROL on the table, or ALTER on the schema like so
GRANT CONTROL ON OBJECT::[dbo].[bob] TO [someuser]
GRANT ALTER ON SCHEMA::[dbo] TO [someuser]
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy