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
31 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sql query for filter 12 32
select over clause 1 40
email about the whoisactive result 7 23
SQL Server merge records in one table 2 11
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.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

912 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now