how to give a user full dbo over a single table in a db

How do you give a single user - full dbo / alter on just 1 table in database
LVL 1
JElsterAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
Create the table in the user schema.
0
JElsterAuthor Commented:
don't understand
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
By default the objects are created on dbo schema so you refer to an object as dbo.ObjectName. dbo stands for DataBaseOwner.
But each user as is own schema so it can creates objects on his own schema and later just need to refer to the object as user.ObjectName.

So the creation statement should be something like:
CREATE TABLE user.TableName
(...)
0
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

JElsterAuthor Commented:
So I have to recreate with the user name?
Can't  just give permissions
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
You can GRANT ALTER but this won't permit the user to create the table. Only alter it:
GRANT ALTER ON TableName TO UserName
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JElsterAuthor Commented:
Still can't alter or modify the table

- Not the table owner
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
The grant command need to be executed by the owner of the table or an user with dbowner role.
0
JElsterAuthor Commented:
Still get the warning messages
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Which warning messages?
0
JElsterAuthor Commented:
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
That warning is when you try to change the table?
During the GRANT operation you didn't get any message?
0
JElsterAuthor Commented:
yes
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Issue was solved?
0
JElsterAuthor Commented:
YES
THX
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Great.
Cheers.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.