Solved

Sql Server 2008 R2 Database and Table Permissions

Posted on 2014-04-17
8
402 Views
Last Modified: 2014-04-29
I'm using SqlServer Management Studio.
I want to grant a user datawriter permissions to all the tables in a database.  I created the user in the database and gave them the role datawriter.  But when I look a the permissions for a table, the user isn't listed.  Is there another step required?
Thanks,
Brooks
0
Comment
Question by:gbnorton
  • 5
  • 2
8 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 40007092
yes in user mapping you have to check off the databases
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 500 total points
ID: 40007102
click logins --- that name  
rightclick that name ---- properties
then click user mapping
and click off the databses you want them to be a datawriter too :)
0
 

Author Comment

by:gbnorton
ID: 40007103
Under Database, Security, Users, myuser I have the role db_datawriter selected.  Where is the mapping at?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 22

Expert Comment

by:plusone3055
ID: 40007110
you have to right click the user name and slect properties
in the properties window  there is a selection on the far left that says User Mapping
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 40007120
I would send you a picture but that feature is currently disabled
I have provided the correct answer 1st...

heres complete steps

Create a user
right click him and select properties
under user mapping
check off a database and below check off data writer

keep repeating :)
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 40007127
also you need to right click the database and hit REFRESH then you will see that user listed :)
0
 
LVL 69

Expert Comment

by:Scott Pletcher
ID: 40007300
>>  I created the user in the database and gave them the role datawriter. <<

From within that database, please double-check that you gave the user the db_datawriter role (bottom of screen) and not ownership of the db_datawriter schema (top of screen).


>> But when I look a the permissions for a table, the user isn't listed.  Is there another step required? <<

No.  Roles are not shown in the permissions list, only specific permission GRANTs, such as DELETE, INSERT, etc..
0
 

Author Closing Comment

by:gbnorton
ID: 40031066
Thanks for your help.  In the end I fixed it by adding the role datareader.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help Required 2 39
Webservices in T-SQL 3 34
length of the password hash sha1:64000 to set sql field property. 13 66
SQL Server Shrink hurting performance? 4 21
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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