Solved

What role or permission should a SQL user have in order to run a script that has a single UPDATE command like below?

Posted on 2016-08-26
2
35 Views
Last Modified: 2016-08-31
Hello,

We are running SQL 2008 R2 on a Windows 2008 R2 server.

I would like to know what role or permission a user should have in order to run a script that contains a single UPDATE command like the one shown below:

UPDATE Table1
SET Column1 = ‘A’
WHERE Column2 = ‘XXXX’ AND Column1 = ‘B’

Attempting to run the query currently returns the following error:

The UPDATE  permission was denied on the object ‘Table1’, database ‘DB1’, schema ‘dbo’.

Thanks in advance,

Regards,
Real-Timer
0
Comment
Question by:realtimer
2 Comments
 
LVL 4

Accepted Solution

by:
Daniel Jones earned 500 total points
ID: 41772654
Using SQL Server Management Studio, access your SQL Server database 'databaseName', and confirm that the user you're setting on service center for the database connection actually has the SELECT, UPDATE, INSERT and DELETE privileges over that database, or just only over the 'tableTest1' object.
0
 

Author Closing Comment

by:realtimer
ID: 41778979
Thank you very much!!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can i make performance tuning to my sql query? 6 54
Help  needed 3 36
export sql results to csv 6 41
migrate a SQL 2008 to 2016, 2 34
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

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