[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

user permission dbo

Posted on 2009-04-29
3
Medium Priority
?
279 Views
Last Modified: 2012-05-06
Hello,

When you alias a login to dbo for a database then the user has also permissions to create additional datafiles for that database or to expand the database.

Is it possible to give a user permission so that he can create tables, views, sp's, ...
But not the permission to adjust the database itself ? For me this is more a serverwide permission than a database permission only.

Than,ks,

Robin
0
Comment
Question by:Geert Bettens
  • 2
2 Comments
 
LVL 12

Expert Comment

by:Chris M
ID: 24260076
Then don't give the user dbo privileges.
Simply run "grant select, update, delete, insert, create on schema::[dbo];" (minus quotes).
Have a beutiful day & God bless,
Chris Musasizi.
0
 
LVL 12

Accepted Solution

by:
Chris M earned 2000 total points
ID: 24260171
Here's the command you should execute after creating the mapping on the account on to the that database.
This will definitely grant the user database permissions.
It's worth it to avoid server level roles like sysadmin. This will elevate the user to do anything on the instance.
Grant the user the default (public) role.
All the best.

grant select, insert, update, delete, execute, control on schema::[dbo] to [dblogin];

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question